powerpc gas syntax error message
Alan Modra
amodra@gmail.com
Wed Jul 28 05:22:00 GMT 2010
Prevents
syntax error; found `
* config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
syntax error message.
Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.172
diff -u -p -r1.172 tc-ppc.c
--- gas/config/tc-ppc.c 20 Jul 2010 05:07:23 -0000 1.172
+++ gas/config/tc-ppc.c 27 Jul 2010 12:49:14 -0000
@@ -2904,7 +3007,10 @@ md_assemble (char *str)
if (*str != endc
&& (endc != ',' || *str != '\0'))
{
- as_bad (_("syntax error; found `%c' but expected `%c'"), *str, endc);
+ if (*str == '\0')
+ as_bad (_("syntax error; end of line, expected `%c'"), endc);
+ else
+ as_bad (_("syntax error; found `%c', expected `%c'"), *str, endc);
break;
}
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list