aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/as.texi
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-11-17 15:45:01 +0000
committerNick Clifton <nickc@redhat.com>2020-11-17 15:45:01 +0000
commit3d955acb36f483c05724181da5ffba46b1303c43 (patch)
tree995b5e0ade78938225f697971674875ebc114858 /gas/doc/as.texi
parent811bdca093965e857e4f4473fbf336da2a93518a (diff)
downloadbinutils-3d955acb36f483c05724181da5ffba46b1303c43.zip
binutils-3d955acb36f483c05724181da5ffba46b1303c43.tar.gz
binutils-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/doc/as.texi')
-rw-r--r--gas/doc/as.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/doc/as.texi b/gas/doc/as.texi
index 4d52945..278de41 100644
--- a/gas/doc/as.texi
+++ b/gas/doc/as.texi
@@ -4662,7 +4662,9 @@ trailing zero byte) into consecutive addresses.
@cindex zero-terminated strings
@cindex null-terminated strings
@code{.asciz} is just like @code{.ascii}, but each string is followed by
-a zero byte. The ``z'' in @samp{.asciz} stands for ``zero''.
+a zero byte. The ``z'' in @samp{.asciz} stands for ``zero''. Note that
+multiple string arguments not separated by commas will be concatenated
+together and only one final zero byte will be stored.
@node Attach_to_group
@section @code{.attach_to_group @var{name}}