diff options
author | Alan Modra <amodra@gmail.com> | 2010-07-28 05:21:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-07-28 05:21:38 +0000 |
commit | 5a93804749f93a734e8cc9f6b6b3a00b70f46c5d (patch) | |
tree | e6f348be3d20b8fbd111f4ef609ae8f51cb72ae4 /gas/config | |
parent | b71fff680dc168d1b7faec1320a98a6ad7527fb2 (diff) | |
download | gdb-5a93804749f93a734e8cc9f6b6b3a00b70f46c5d.zip gdb-5a93804749f93a734e8cc9f6b6b3a00b70f46c5d.tar.gz gdb-5a93804749f93a734e8cc9f6b6b3a00b70f46c5d.tar.bz2 |
* config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
syntax error message.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-ppc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index c8e24e4..8d64349 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -2904,7 +2904,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; } |