aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorSergey Belyashov <sergey.belyashov@gmail.com>2020-01-03 16:23:19 +0000
committerNick Clifton <nickc@redhat.com>2020-01-03 16:23:19 +0000
commit16d87673993dc1dba10cd86996a9b016af38da12 (patch)
tree85dbb6aba85b82d6847e3092d95e4f4fb3e281d6 /gas/config
parentf2a3559d54602cecfec6d90f792be4a70ad918ab (diff)
downloadgdb-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/config')
-rw-r--r--gas/config/tc-ppc.h2
-rw-r--r--gas/config/tc-z80.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h
index 870983c..4df7982 100644
--- a/gas/config/tc-ppc.h
+++ b/gas/config/tc-ppc.h
@@ -61,7 +61,7 @@ extern const char *ppc_target_format (void);
/* Strings do not use backslash escapes under COFF. */
#ifdef OBJ_COFF
-#define NO_STRING_ESCAPES
+#define TC_STRING_ESCAPES 0
#endif
#ifdef OBJ_ELF
diff --git a/gas/config/tc-z80.h b/gas/config/tc-z80.h
index 5749027..ae98d5d 100644
--- a/gas/config/tc-z80.h
+++ b/gas/config/tc-z80.h
@@ -96,6 +96,7 @@ extern void z80_cons_fix_new (fragS *, int, int, expressionS *);
/* We allow single quotes to delimit character constants as
well, but it is cleaner to handle that in tc-z80.c. */
#define SINGLE_QUOTE_STRINGS
+#define TC_STRING_ESCAPES 0
/* An `.lcomm' directive with no explicit alignment parameter will
use this macro to set P2VAR to the alignment that a request for