diff options
author | Sergey Belyashov <sergey.belyashov@gmail.com> | 2020-01-03 16:23:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-01-03 16:23:19 +0000 |
commit | 16d87673993dc1dba10cd86996a9b016af38da12 (patch) | |
tree | 85dbb6aba85b82d6847e3092d95e4f4fb3e281d6 /gas/read.c | |
parent | f2a3559d54602cecfec6d90f792be4a70ad918ab (diff) | |
download | gdb-16d87673993dc1dba10cd86996a9b016af38da12.zip gdb-16d87673993dc1dba10cd86996a9b016af38da12.tar.gz gdb-16d87673993dc1dba10cd86996a9b016af38da12.tar.bz2 |
Allow individual targets to decide if string escapes should be allowed. Disable for PPC and Z80.
PR 25311
* as.h (TC_STRING_ESCAPES): Provide a default definition.
* app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
NO_STRING_ESCAPES.
* read.c (next_char_of_string): Likewise.
* config/tc-ppc.h (TC_STRING_ESCAPES): Define.
* config/tc-z80.h (TC_STRING_ESCAPES): Define.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5435,8 +5435,9 @@ next_char_of_string (void) bump_line_counters (); break; -#ifndef NO_STRING_ESCAPES case '\\': + if (!TC_STRING_ESCAPES) + break; switch (c = *input_line_pointer++ & CHAR_MASK) { case 'b': @@ -5538,7 +5539,6 @@ next_char_of_string (void) break; } break; -#endif /* ! defined (NO_STRING_ESCAPES) */ default: break; |