diff options
author | Roland McGrath <roland@gnu.org> | 2012-05-29 16:32:11 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2012-05-29 16:32:11 +0000 |
commit | d416e51da0f5e79c66f1d609068e83fff4add35a (patch) | |
tree | 99554506bbc79f81aa1a8eeed32237f98579886e /gas/doc/as.texinfo | |
parent | acf89cab13c1826d83dce1c7ae8ea805bc034bda (diff) | |
download | gdb-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.texinfo | 9 |
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}} |