aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-08-24 17:57:52 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-08-24 17:57:52 +0000
commite772203522289a4380e9ed4edccaeb24e714071f (patch)
tree1839207f82df968db5aa1bd1b17f98be3b05a4e0 /gas
parent9ace5d9690357c50862f5e351b6309e2d8807428 (diff)
downloadgdb-e772203522289a4380e9ed4edccaeb24e714071f.zip
gdb-e772203522289a4380e9ed4edccaeb24e714071f.tar.gz
gdb-e772203522289a4380e9ed4edccaeb24e714071f.tar.bz2
Properly check x32 support
* gas/i386/ilp32/ilp32.exp (gas_64_check): Renamed to ... (gas_x32_check): This. Check elf32-x86-64. Remove Solaris check. * gas/i386/ilp32/cfi/ilp32.exp: Likewise. * gas/i386/ilp32/elf/ilp32.exp: Likewise. * gas/i386/ilp32/lns/ilp32.exp: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog9
-rw-r--r--gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp10
-rw-r--r--gas/testsuite/gas/i386/ilp32/elf/ilp32.exp10
-rw-r--r--gas/testsuite/gas/i386/ilp32/ilp32.exp10
-rw-r--r--gas/testsuite/gas/i386/ilp32/lns/ilp32.exp10
5 files changed, 21 insertions, 28 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 735e0b4..89a2f7f 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,14 @@
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
+ * gas/i386/ilp32/ilp32.exp (gas_64_check): Renamed to ...
+ (gas_x32_check): This. Check elf32-x86-64.
+ Remove Solaris check.
+ * gas/i386/ilp32/cfi/ilp32.exp: Likewise.
+ * gas/i386/ilp32/elf/ilp32.exp: Likewise.
+ * gas/i386/ilp32/lns/ilp32.exp: Likewise.
+
+2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
+
* gas/i386/ilp32/ilp32.exp: Skip Solaris.
* gas/i386/ilp32/cfi/ilp32.exp: Likewise.
* gas/i386/ilp32/elf/ilp32.exp: Likewise.
diff --git a/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp b/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp
index 3a6dbd5..96e9b78 100644
--- a/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp
+++ b/gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp
@@ -1,19 +1,15 @@
#
# x86-64 ILP32 tests
#
-proc gas_64_check { } {
+proc gas_x32_check { } {
global NM
global NMFLAGS
set status [gas_host_run "$NM $NMFLAGS --help" ""]
- return [regexp "targets:.*x86-64" [lindex $status 1]];
+ return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
}
-if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
- return
-}
-
-if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
+if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
global ASFLAGS
set old_ASFLAGS "$ASFLAGS"
diff --git a/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp b/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp
index 3a6dbd5..96e9b78 100644
--- a/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp
+++ b/gas/testsuite/gas/i386/ilp32/elf/ilp32.exp
@@ -1,19 +1,15 @@
#
# x86-64 ILP32 tests
#
-proc gas_64_check { } {
+proc gas_x32_check { } {
global NM
global NMFLAGS
set status [gas_host_run "$NM $NMFLAGS --help" ""]
- return [regexp "targets:.*x86-64" [lindex $status 1]];
+ return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
}
-if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
- return
-}
-
-if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
+if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
global ASFLAGS
set old_ASFLAGS "$ASFLAGS"
diff --git a/gas/testsuite/gas/i386/ilp32/ilp32.exp b/gas/testsuite/gas/i386/ilp32/ilp32.exp
index 5197022..e2ec85c 100644
--- a/gas/testsuite/gas/i386/ilp32/ilp32.exp
+++ b/gas/testsuite/gas/i386/ilp32/ilp32.exp
@@ -1,19 +1,15 @@
#
# x86-64 ILP32 tests
#
-proc gas_64_check { } {
+proc gas_x32_check { } {
global NM
global NMFLAGS
set status [gas_host_run "$NM $NMFLAGS --help" ""]
- return [regexp "targets:.*x86-64" [lindex $status 1]];
+ return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
}
-if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
- return
-}
-
-if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
+if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
global ASFLAGS
set old_ASFLAGS "$ASFLAGS"
diff --git a/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp b/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp
index 3a6dbd5..96e9b78 100644
--- a/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp
+++ b/gas/testsuite/gas/i386/ilp32/lns/ilp32.exp
@@ -1,19 +1,15 @@
#
# x86-64 ILP32 tests
#
-proc gas_64_check { } {
+proc gas_x32_check { } {
global NM
global NMFLAGS
set status [gas_host_run "$NM $NMFLAGS --help" ""]
- return [regexp "targets:.*x86-64" [lindex $status 1]];
+ return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
}
-if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
- return
-}
-
-if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
+if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
global ASFLAGS
set old_ASFLAGS "$ASFLAGS"