summaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-08-27 23:34:18 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-08-27 23:34:18 +0000
commit440f3ac9894742623a3e5e17846fdc5d4b3a547f (patch)
tree9ed0e816329817cb1a727ee57cfe7ed22d320d61 /gas/app.c
parent11bd877ea4f02214d90e38fb3ce38b6ca513ef13 (diff)
downloadbinutils-redhat-440f3ac9894742623a3e5e17846fdc5d4b3a547f.tar.gz
* app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/gas/app.c b/gas/app.c
index f9c5c7d868..7ea90b4f52 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -1,6 +1,6 @@
/* This is the Assembler Pre-Processor
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000
+ 1999, 2000, 2002
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -611,6 +611,11 @@ do_scrub_chars (get, tostart, tolen)
PUT ('\\');
continue;
+ case EOF:
+ as_warn (_("end of file in string; '\"' inserted"));
+ PUT ('"');
+ continue;
+
case '"':
case '\\':
case 'b':
@@ -630,20 +635,12 @@ do_scrub_chars (get, tostart, tolen)
case '6':
case '7':
break;
-#if defined(IGNORE_NONSTANDARD_ESCAPES) | defined(ONLY_STANDARD_ESCAPES)
+
default:
+#ifdef ONLY_STANDARD_ESCAPES
as_warn (_("unknown escape '\\%c' in string; ignored"), ch);
+#endif
break;
-#else /* ONLY_STANDARD_ESCAPES */
- default:
- /* Accept \x as x for any x */
- break;
-#endif /* ONLY_STANDARD_ESCAPES */
-
- case EOF:
- as_warn (_("end of file in string; '\"' inserted"));
- PUT ('"');
- continue;
}
PUT (ch);
continue;