diff options
author | Alan Modra <amodra@gmail.com> | 2009-10-15 10:58:34 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-10-15 10:58:34 +0000 |
commit | f19df8f73a7bbfeb12d1540791ed51aa86b0bdf9 (patch) | |
tree | ac25f2e334b6e60122305754da1c4d0e3bdc93ab /gas/testsuite | |
parent | c44c601a50df172a963c97120ae40c25630552a5 (diff) | |
download | gdb-f19df8f73a7bbfeb12d1540791ed51aa86b0bdf9.zip gdb-f19df8f73a7bbfeb12d1540791ed51aa86b0bdf9.tar.gz gdb-f19df8f73a7bbfeb12d1540791ed51aa86b0bdf9.tar.bz2 |
PR gas/1491
gas/
* macro.c: Delete unnecessary function declarations.
(buffer_and_nest): Support multiple labels per line for
LABELS_WITHOUT_COLONS targets if the labels do have colons.
(free_macro): Move so that we don't need forward declaration.
* read.c (read_a_source_file): Take a copy of macro expansion line
before we trim labels.
* listing.c (listing_newline): Adjust stdin line save for
input_line_pointer still at start of line.
gas/testsuite/
* gas/macros/dot.s: Don't start macro invocations is first column.
* gas/macros/dot.l: Update.
* gas/macros/macros.exp: Run dot test on more targets.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/macros/dot.l | 16 | ||||
-rw-r--r-- | gas/testsuite/gas/macros/dot.s | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/macros/macros.exp | 4 |
4 files changed, 17 insertions, 14 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index b86bd64..5227066 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2009-10-15 Alan Modra <amodra@bigpond.net.au> + + PR gas/1491 + * gas/macros/dot.s: Don't start macro invocations is first column. + * gas/macros/dot.l: Update. + * gas/macros/macros.exp: Run dot test on more targets. + 2009-10-13 H.J. Lu <hongjiu.lu@intel.com> PR gas/10740 diff --git a/gas/testsuite/gas/macros/dot.l b/gas/testsuite/gas/macros/dot.l index 980de4f..5c616b0 100644 --- a/gas/testsuite/gas/macros/dot.l +++ b/gas/testsuite/gas/macros/dot.l @@ -4,16 +4,16 @@ .*:28: Error: .* #... [ ]*[1-9][0-9]*[ ]+m 4, 2 -[ ]*[1-9][0-9]*[ ]+> \.data +[ ]*[1-9][0-9]*[ ]+> \.data [ ]*[1-9][0-9]*[ ]+> labelA:labelB:labelC:labelD:x\.y\.z 4\+2 -[ ]*[1-9][0-9]*[ ]+>> \.align 4 -[ ]*[1-9][0-9]*[ ]+\?+[ ]+0606[ ]+>> \.byte 4\+2,4\+2 -[ ]*[1-9][0-9]*[ ]+\?+[ ]+0000[ ]+> \.skip 2 +[ ]*[1-9][0-9]*[ ]+>> \.align 4 +[ ]*[1-9][0-9]*[ ]+\?+[ ]+06 ?06[ ]+>> \.byte 4\+2,4\+2 +[ ]*[1-9][0-9]*[ ]+\?+[ ]+00 ?00[ ]+> \.skip 2 [ ]*[1-9][0-9]*[ ]+> labelZ:labelY:labelX:labelW:\.xyz 4-2 -[ ]*[1-9][0-9]*[ ]+>> \.align 8 -[ ]*[1-9][0-9]*[ ]+\?+[ ]+0202[ ]+>> \.byte 4-2,4-2 -[ ]*[1-9][0-9]*[ ]+\?+[ ]+0000 ?0000[ ]+> \.skip 4\*2 -[ ]*[1-9][0-9]*[ ]+0000 ?0000[ ]* +[ ]*[1-9][0-9]*[ ]+>> \.align 8 +[ ]*[1-9][0-9]*[ ]+\?+[ ]+02 ?02[ ]+>> \.byte 4-2,4-2 +[ ]*[1-9][0-9]*[ ]+\?+[ ]+00 ?00 ?00 ?00[ ]+> \.skip 4\*2 +[ ]*[1-9][0-9]*[ ]+00 ?00 ?00 ?00[ ]* [ ]*[1-9][0-9]*[ ]+> label9:label8:label7:label6: [ ]*[1-9][0-9]*[ ]+ [ ]*[1-9][0-9]*[ ]+\.purgem \.xyz, x\.y\.z diff --git a/gas/testsuite/gas/macros/dot.s b/gas/testsuite/gas/macros/dot.s index 72ce972..1c9503b 100644 --- a/gas/testsuite/gas/macros/dot.s +++ b/gas/testsuite/gas/macros/dot.s @@ -21,8 +21,8 @@ labelZ:labelY : labelX :labelW: .xyz arg.1-arg.2 .skip arg.1*arg.2 label9:label8 : label7 :label6: .endm -m 4, 2 + m 4, 2 .purgem .xyz, x.y.z .xyz 0 -x.y.z 0 + x.y.z 0 diff --git a/gas/testsuite/gas/macros/macros.exp b/gas/testsuite/gas/macros/macros.exp index 9a4aec8..d2e30bb 100644 --- a/gas/testsuite/gas/macros/macros.exp +++ b/gas/testsuite/gas/macros/macros.exp @@ -61,12 +61,8 @@ run_list_test badarg "" case $target_triplet in { { *c54x*-*-* } { } { *c4x*-*-* } { } - { h8500-*-* } { } - { m68*-*-* } { } - { m88*-*-* } { } { mmix-* } { } { rx-*-* } { } - { z80-* } { } default { run_list_test dot "-alm" } } run_list_test end "" |