diff options
author | Roland McGrath <roland@gnu.org> | 2012-05-29 16:32:04 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2012-05-29 16:32:04 +0000 |
commit | 649c42ef7b56088e96ce38d8e0dc3555e132b129 (patch) | |
tree | e79d342d81b517518d6601ec640adaf6fc846a20 /gas/doc | |
parent | 2481d642a62a81aae53713da4655ff86226714a8 (diff) | |
download | binutils-redhat-649c42ef7b56088e96ce38d8e0dc3555e132b129.tar.gz |
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')
-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 72b5d0522f..5b5d268b10 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}} |