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
This commit is contained in:
Andreas Krebbel 2005-02-15 12:23:40 +00:00 committed by Ulrich Weigand
parent 934677f9cc
commit ab71324aa4
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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>
PR tree-optimization/19853

View File

@ -48,11 +48,14 @@ if [isnative] then {
set native_cflags "-xarch=v9"
}
}
if [istarget "s390x-*-linux*"] {
if [istarget "s390*-*-linux*"] {
set file_string [exec file "linkage-x.o"]
if [ string match "*32-bit*" $file_string ] {
set native_cflags "-m31"
}
if [ string match "*64-bit*" $file_string ] {
set native_cflags "-m64"
}
} elseif [istarget "x86_64-*-linux*"] {
set file_string [exec file "linkage-x.o"]
if [ string match "*32-bit*" $file_string ] {