Commit ab71324a by Andreas Krebbel Committed by Ulrich Weigand

linkage.exp (s390): Check for 64bit added.

2005-02-15  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.misc-tests/linkage.exp (s390): Check for 64bit added.

From-SVN: r95063
parent 934677f9
2005-02-15 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.misc-tests/linkage.exp (s390): Check for 64bit added.
2005-02-14 Diego Novillo <dnovillo@redhat.com> 2005-02-14 Diego Novillo <dnovillo@redhat.com>
PR tree-optimization/19853 PR tree-optimization/19853
......
...@@ -48,11 +48,14 @@ if [isnative] then { ...@@ -48,11 +48,14 @@ if [isnative] then {
set native_cflags "-xarch=v9" set native_cflags "-xarch=v9"
} }
} }
if [istarget "s390x-*-linux*"] { if [istarget "s390*-*-linux*"] {
set file_string [exec file "linkage-x.o"] set file_string [exec file "linkage-x.o"]
if [ string match "*32-bit*" $file_string ] { if [ string match "*32-bit*" $file_string ] {
set native_cflags "-m31" set native_cflags "-m31"
} }
if [ string match "*64-bit*" $file_string ] {
set native_cflags "-m64"
}
} elseif [istarget "x86_64-*-linux*"] { } elseif [istarget "x86_64-*-linux*"] {
set file_string [exec file "linkage-x.o"] set file_string [exec file "linkage-x.o"]
if [ string match "*32-bit*" $file_string ] { if [ string match "*32-bit*" $file_string ] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment