[PATCH 2/3] PPC: ignore rest of line after earlier error
Jan Beulich
jbeulich@suse.com
Mon Jan 12 12:25:42 GMT 2026
If the operand parsing loop exits prematurely (due to an error), don't
report a second error for the unparsed remainder.
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -3959,11 +3959,14 @@ md_assemble (char *str)
}
}
- while (is_whitespace (*str))
- ++str;
+ if (*opindex_ptr == 0)
+ {
+ while (is_whitespace (*str))
+ ++str;
- if (*str != '\0')
- as_bad (_("junk at end of line: `%s'"), str);
+ if (*str != '\0')
+ as_bad (_("junk at end of line: `%s'"), str);
+ }
#ifdef OBJ_ELF
/* Do we need/want an APUinfo section? */
More information about the Binutils
mailing list