aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/as.texinfo
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2012-05-29 16:32:11 +0000
committerRoland McGrath <roland@gnu.org>2012-05-29 16:32:11 +0000
commitd416e51da0f5e79c66f1d609068e83fff4add35a (patch)
tree99554506bbc79f81aa1a8eeed32237f98579886e /gas/doc/as.texinfo
parentacf89cab13c1826d83dce1c7ae8ea805bc034bda (diff)
downloadgdb-d416e51da0f5e79c66f1d609068e83fff4add35a.zip
gdb-d416e51da0f5e79c66f1d609068e83fff4add35a.tar.gz
gdb-d416e51da0f5e79c66f1d609068e83fff4add35a.tar.bz2
gas/
* read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable. (read_a_source_file) [HANDLE_BUNDLE]: Reset it. [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested pairs. gas/testsuite/ * gas/i386/bundle-bad.s: Remove nested .bundle_lock case. * gas/i386/bundle-bad.l: Remove expected error line. * gas/i386/bundle-lock.s: Add nested .bundle_lock case. * gas/i386/bundle-lock.d: Update expectations.
Diffstat (limited to 'gas/doc/as.texinfo')
-rw-r--r--gas/doc/as.texinfo9
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index 72b5d05..5b5d268 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -4351,9 +4351,12 @@ first instruction of the sequence so that the whole sequence starts on an
aligned bundle boundary. It's an error if the sequence is longer than the
bundle size.
-Bundle-locked sequences do not nest. It's an error if two
-@code{.bundle_lock} directives appear without an intervening
-@code{.bundle_unlock} directive.
+For convenience when using @code{.bundle_lock} and @code{.bundle_unlock}
+inside assembler macros (@pxref{Macro}), bundle-locked sequences may be
+nested. That is, a second @code{.bundle_lock} directive before the next
+@code{.bundle_unlock} directive has no effect except that it must be
+matched by another closing @code{.bundle_unlock} so that there is the
+same number of @code{.bundle_lock} and @code{.bundle_unlock} directives.
@node Byte
@section @code{.byte @var{expressions}}