diff options
author | Nick Clifton <nickc@redhat.com> | 2005-03-01 15:39:59 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-03-01 15:39:59 +0000 |
commit | a3a4c9c4ac0fd8c44fcaf08d0c9b35e98e81b9bd (patch) | |
tree | 4e2c61e7a4afd0d305dfb001f4d16a33e47e130d /gas/testsuite | |
parent | ce04548af9eafaa2034f081247a21ff3fcfede15 (diff) | |
download | gdb-a3a4c9c4ac0fd8c44fcaf08d0c9b35e98e81b9bd.zip gdb-a3a4c9c4ac0fd8c44fcaf08d0c9b35e98e81b9bd.tar.gz gdb-a3a4c9c4ac0fd8c44fcaf08d0c9b35e98e81b9bd.tar.bz2 |
Fix undefined local label test for COFF based ARM ports
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/arm.exp | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/undefined_coff.l | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/undefined_coff.s | 1 |
4 files changed, 15 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 87bef55..389ecb7 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2005-03-01 Nick Clifton <nickc@redhat.com> + + * gas/arm/arm.exp (undefined): Run a COFF variant of this test for + COFF based ports. + * gas/arm/undefined_coff.s: New file: Variant of undefined.s but + with a COFF formated local label name. + * gas/arm/undefined_coff.l: New file. Variant of undefined.l. + 2005-03-01 Stig Petter Olsroed <stigpo@users.sourceforge.net> Nick Clifton <nickc@redhat.com> diff --git a/gas/testsuite/gas/arm/arm.exp b/gas/testsuite/gas/arm/arm.exp index d1578ec..8aa5c49 100644 --- a/gas/testsuite/gas/arm/arm.exp +++ b/gas/testsuite/gas/arm/arm.exp @@ -56,13 +56,16 @@ if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then { run_errors_test "req" "-mcpu=arm7m" ".req errors" run_errors_test "armv1-bad" "-mcpu=arm7m" "ARM v1 errors" run_errors_test "r15-bad" "" "Invalid use of r15 errors" - run_errors_test "undefined" "" "Undefined local label error" if {[istarget *-*-*elf*] || [istarget *-*-linux*] || [istarget *-*-*eabi]} then { + run_errors_test "undefined" "" "Undefined local label error" run_dump_test "pic" run_dump_test "mapping" gas_test "bignum1.s" "" $stdoptlist "bignums" run_dump_test "unwind" + } else { + # COFF based ports use a different naming convention for local labels. + run_errors_test "undefined_coff" "" "Undefined local label error" } if {! [istarget arm*-*-aout] && ![istarget arm-*-pe]} then { diff --git a/gas/testsuite/gas/arm/undefined_coff.l b/gas/testsuite/gas/arm/undefined_coff.l new file mode 100644 index 0000000..1bd8dcf --- /dev/null +++ b/gas/testsuite/gas/arm/undefined_coff.l @@ -0,0 +1,2 @@ +[^:]*: Assembler messages: +[^:]*:1: Error: undefined local label `Lval' diff --git a/gas/testsuite/gas/arm/undefined_coff.s b/gas/testsuite/gas/arm/undefined_coff.s new file mode 100644 index 0000000..dd18dad --- /dev/null +++ b/gas/testsuite/gas/arm/undefined_coff.s @@ -0,0 +1 @@ + ldr a1, Lval |