aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-09-29 14:20:39 +0000
committerNick Clifton <nickc@redhat.com>2008-09-29 14:20:39 +0000
commitc0a139c7d13d2dc5454aae5be5a4fe6523a82196 (patch)
treeeaa56ac20ed8c1f23d23910c46b96c36c95b7d58 /gas/app.c
parentceae84aacf0d5459a74fd5496cd2c0d6708e052a (diff)
downloadfsf-binutils-gdb-c0a139c7d13d2dc5454aae5be5a4fe6523a82196.zip
fsf-binutils-gdb-c0a139c7d13d2dc5454aae5be5a4fe6523a82196.tar.gz
fsf-binutils-gdb-c0a139c7d13d2dc5454aae5be5a4fe6523a82196.tar.bz2
PR 6878
* app.c (do_scrub_chars): Only issue warnings about tick characters detected in symbol strings if hex ticks are supported.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/app.c b/gas/app.c
index 6fa604f..b9832d1 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'. */