gas/
authorRoland McGrath <roland@gnu.org>
Tue, 13 Mar 2012 16:59:57 +0000 (16:59 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 13 Mar 2012 16:59:57 +0000 (16:59 +0000)
commitfa94de6b5c193ccfe743efa63720647f63417032
tree6e2097f0183c1ad232e4f9650cd885a26de0c6c7
parent46cb6474c3a9fae3dbe25f7f42a7d24217d0fb5c
gas/
2012-03-12  Roland McGrath  <mcgrathr@google.com>

* config/tc-arm.c (arm_frag_max_var): New function.
* config/tc-arm.h: Declare it.
(md_frag_max_var): New macro.

* config/tc-i386.c (i386_frag_max_var): New function.
* config/tc-i386.h: Declare it.
(md_frag_max_var): New macro.

* doc/as.texinfo (Bundle directives): New node.
(Pseudo Ops): Add it to the menu.
* NEWS: Mention new feature.
* read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
[HANDLE_BUNDLE] (bundle_align_p2): New variable.
[HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
[HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
New functions.
(assemble_one): New function if [HANDLE_BUNDLE], #define directly
to md_assembly if not.
(read_a_source_file): Call assemble_one in place of md_assemble.
(read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
.bundle_lock at end of processing.
[HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
New functions.
[HANDLE_BUNDLE] (potable): Add their entries.
* read.h: Declare new functions.

gas/testsuite/
2012-03-12  Roland McGrath  <mcgrathr@google.com>

* gas/i386/bundle-bad.s: New file.
* gas/i386/bundle-bad.d: New file.
* gas/i386/bundle-bad.l: New file.
* gas/i386/i386.exp: Run it.

* gas/arm/bundle.s: New file.
* gas/arm/bundle.d: New file.
* gas/arm/bundle-lock.s: New file.
* gas/arm/bundle-lock.d: New file.

* gas/i386/bundle.s: New file.
* gas/i386/bundle.d: New file.
* gas/i386/x86-64-bundle.s: New file.
* gas/i386/x86-64-bundle.d: New file.
* gas/i386/bundle-lock.s: New file.
* gas/i386/bundle-lock.d: New file.
* gas/i386/i386.exp: Run them.
24 files changed:
gas/ChangeLog
gas/NEWS
gas/config/tc-arm.c
gas/config/tc-arm.h
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/doc/as.texinfo
gas/read.c
gas/read.h
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/bundle-lock.d [new file with mode: 0644]
gas/testsuite/gas/arm/bundle-lock.s [new file with mode: 0644]
gas/testsuite/gas/arm/bundle.d [new file with mode: 0644]
gas/testsuite/gas/arm/bundle.s [new file with mode: 0644]
gas/testsuite/gas/i386/bundle-bad.d [new file with mode: 0644]
gas/testsuite/gas/i386/bundle-bad.l [new file with mode: 0644]
gas/testsuite/gas/i386/bundle-bad.s [new file with mode: 0644]
gas/testsuite/gas/i386/bundle-lock.d [new file with mode: 0644]
gas/testsuite/gas/i386/bundle-lock.s [new file with mode: 0644]
gas/testsuite/gas/i386/bundle.d [new file with mode: 0644]
gas/testsuite/gas/i386/bundle.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-bundle.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-bundle.s [new file with mode: 0644]