https://gcc.gnu.org/g:938094abec2198f5984e0f8c99432700f2f212d9

commit r15-5568-g938094abec2198f5984e0f8c99432700f2f212d9
Author: Georg-Johann Lay <a...@gjlay.de>
Date:   Thu Nov 21 17:52:26 2024 +0100

    AVR: Fix a nit in avr-passes.cc::absint_t.dump().
    
    gcc/
            * config/avr/avr-passes.cc (absint_t::dump): Fix missing
            newline in dump.

Diff:
---
 gcc/config/avr/avr-passes.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config/avr/avr-passes.cc b/gcc/config/avr/avr-passes.cc
index 3d55cf885c2a..49473efbb0d3 100644
--- a/gcc/config/avr/avr-passes.cc
+++ b/gcc/config/avr/avr-passes.cc
@@ -960,8 +960,9 @@ struct absint_t
            const int sub_regno = eq[i].regno (false /*nonstrict*/);
            const bool nop = regno &&  sub_regno == regno + i;
            eq[i].dump (nop ? "%s=nop" : "%s", f);
-           fprintf (f, "%s", i ? "; " : xs + strlen ("%s"));
+           fprintf (f, "%s", i ? "; " : "");
          }
+       fprintf (f, "%s", xs + strlen ("%s"));
       }
   }
 }; // absint_t

Reply via email to