This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
powerpc gas syntax error message
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 28 Jul 2010 14:52:07 +0930
- Subject: powerpc gas syntax error message
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