aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-03 02:51:09 +0000
committerRichard Henderson <rth@redhat.com>1999-06-03 02:51:09 +0000
commit1c32af2255abf839bf48b241efd4ce0e670eb00c (patch)
tree722ad7f8159034037f2b3911750bfccce818ac48 /gas/read.c
parent86eab3efc4e862495c4de95b454a6dea6c10b859 (diff)
downloadbinutils-1c32af2255abf839bf48b241efd4ce0e670eb00c.zip
binutils-1c32af2255abf839bf48b241efd4ce0e670eb00c.tar.gz
binutils-1c32af2255abf839bf48b241efd4ce0e670eb00c.tar.bz2
* read.c (read_a_source_file): Conditionally allow matched "
in lines passed to md_assemble.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index 7859fe1..ecf2c57 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -825,7 +825,7 @@ read_a_source_file (name)
}
else
{
- int inquote = 0;
+ int inquote = 0, inescape = 0;
/* WARNING: c has char, which may be end-of-line. */
/* Also: input_line_pointer->`\0` where c was. */
@@ -839,6 +839,14 @@ read_a_source_file (name)
{
if (flag_m68k_mri && *input_line_pointer == '\'')
inquote = ! inquote;
+#ifdef QUOTES_IN_INSN
+ if (inescape)
+ inescape = 0;
+ else if (*input_line_pointer == '"')
+ inquote = ! inquote;
+ else if (*input_line_pointer == '\\')
+ inescape = 1;
+#endif
input_line_pointer++;
}
@@ -4405,7 +4413,7 @@ s_leb128 (sign)
/*
* stringer()
*
- * We read 0 or more ',' seperated, double-quoted strings.
+ * We read 0 or more ',' separated, double-quoted strings.
*
* Caller should have checked need_pass_2 is FALSE because we don't check it.
*/