From 5a93804749f93a734e8cc9f6b6b3a00b70f46c5d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 28 Jul 2010 05:21:38 +0000 Subject: [PATCH] * config/tc-ppc.c (md_assemble): Don't attempt to print NUL in syntax error message. --- gas/ChangeLog | 5 +++++ gas/config/tc-ppc.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index eeb310fc655..c435a4dd412 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-07-28 Alan Modra + + * config/tc-ppc.c (md_assemble): Don't attempt to print NUL in + syntax error message. + 2010-07-27 Maciej W. Rozycki * config/tc-mips.c (mips16_macro_build): Pass "args" by diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index c8e24e42dcd..8d64349f9fd 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; } -- 2.30.2