From: Nick Clifton Date: Mon, 29 Sep 2008 14:21:33 +0000 (+0000) Subject: PR 6878 X-Git-Tag: binutils-2_19~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=810cb31fbb8847360ac510af84057239f13de848;p=thirdparty%2Fbinutils-gdb.git PR 6878 * app.c (do_scrub_chars): Only issue warnings about tick characters detected in symbol strings if hex ticks are supported. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 09d6548c305..af79d31b92a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2008-09-29 Nick Clifton + + PR 6878 + * app.c (do_scrub_chars): Only issue warnings about tick + characters detected in symbol strings if hex ticks are supported. + 2008-09-29 Nick Clifton * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of diff --git a/gas/app.c b/gas/app.c index 6fa604fa831..b9832d14b71 100644 --- a/gas/app.c +++ b/gas/app.c @@ -1024,7 +1024,8 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) #ifndef IEEE_STYLE case LEX_IS_ONECHAR_QUOTE: - if (state == 9) +#ifdef H_TICK_HEX + if (state == 9 && enable_h_tick_hex) { char c; @@ -1032,6 +1033,7 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) as_warn ("'%c found after symbol", c); UNGET (c); } +#endif if (state == 10) { /* Preserve the whitespace in foo 'b'. */