diff options
author | Nick Clifton <nickc@redhat.com> | 2020-11-17 15:45:01 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-11-17 15:45:01 +0000 |
commit | 3d955acb36f483c05724181da5ffba46b1303c43 (patch) | |
tree | 995b5e0ade78938225f697971674875ebc114858 /gas/read.c | |
parent | 811bdca093965e857e4f4473fbf336da2a93518a (diff) | |
download | gdb-3d955acb36f483c05724181da5ffba46b1303c43.zip gdb-3d955acb36f483c05724181da5ffba46b1303c43.tar.gz gdb-3d955acb36f483c05724181da5ffba46b1303c43.tar.bz2 |
When reading string arguments for the assembler's string directives treat space separated strings as a single entity.
* read.c (stringer): Treat space separated, quote enclosed strings
as a single string.
* doc/as.texi (asciz): Mention this behaviour in the description
of the asciz directive.
* testsuite/gas/all/asciz.s: New test.
* testsuite/gas/all/asciz.d: New test driver.
* testsuite/gas/all/gas.exp: Run the new test.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5468,6 +5468,11 @@ stringer (int bits_appendzero) while (is_a_char (c = next_char_of_string ())) stringer_append_char (c, bitsize); + /* Treat "a" "b" as "ab". Even if we are appending zeros. */ + SKIP_ALL_WHITESPACE (); + if (*input_line_pointer == '"') + break; + if (append_zero) stringer_append_char (0, bitsize); |