]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Properly check x32 support
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Aug 2012 17:57:52 +0000 (17:57 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Aug 2012 17:57:52 +0000 (17:57 +0000)
* 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.

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/ilp32/cfi/ilp32.exp
gas/testsuite/gas/i386/ilp32/elf/ilp32.exp
gas/testsuite/gas/i386/ilp32/ilp32.exp
gas/testsuite/gas/i386/ilp32/lns/ilp32.exp

index 735e0b4eac9efed43f87b3eb42443327f06fc497..89a2f7f15c1727eadc559c57844a6cea061cfa4c 100644 (file)
@@ -1,3 +1,12 @@
+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.
index 3a6dbd5253abacd26bf42cd4a1ee41f239695a4f..96e9b78fcd11d544b081964c629ffb917ec1cce8 100644 (file)
@@ -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"
index 3a6dbd5253abacd26bf42cd4a1ee41f239695a4f..96e9b78fcd11d544b081964c629ffb917ec1cce8 100644 (file)
@@ -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"
index 51970222c0c1e345344b3e9670b5ee8bb56c8336..e2ec85c21f16d44100ac49efa8d9570020d5ce5d 100644 (file)
@@ -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"
index 3a6dbd5253abacd26bf42cd4a1ee41f239695a4f..96e9b78fcd11d544b081964c629ffb917ec1cce8 100644 (file)
@@ -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"