Commit 38439253 by Jack Howarth Committed by Janis Johnson

linkage.exp: Correct file type check for Darwin.

2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>

	* gcc.misc-tests/linkage.exp: Correct file type check for Darwin.

From-SVN: r142371
parent 664cd485
2008-12-02 Jack Howarth <howarth@bromo.med.uc.edu>
* gcc.misc-tests/linkage.exp: Correct file type check for Darwin.
2008-12-02 Jakub Jelinek <jakub@redhat.com> 2008-12-02 Jakub Jelinek <jakub@redhat.com>
PR middle-end/38343 PR middle-end/38343
......
...@@ -73,11 +73,18 @@ if { [isnative] && ![is_remote host] } then { ...@@ -73,11 +73,18 @@ if { [isnative] && ![is_remote host] } then {
} elseif [ string match "*32-bit*" $file_string ] { } elseif [ string match "*32-bit*" $file_string ] {
set native_cflags "-m32" set native_cflags "-m32"
} }
} elseif [istarget "*-*-darwin*"] { } elseif [istarget "powerpc*-*-darwin*"] {
set file_string [exec file "linkage-x.o"] set file_string [exec file "linkage-x.o"]
if [ string match "*64-bit*" $file_string ] { if [ string match "*ppc64" $file_string ] {
set native_cflags "-m64" set native_cflags "-m64"
} elseif [ string match "*32-bit*" $file_string ] { } elseif [ string match "*ppc" $file_string ] {
set native_cflags "-m32"
}
} elseif [istarget "*86*-*-darwin*"] {
set file_string [exec file "linkage-x.o"]
if [ string match "*x86_64" $file_string ] {
set native_cflags "-m64"
} elseif [ string match "*i386" $file_string ] {
set native_cflags "-m32" set native_cflags "-m32"
} }
} }
......
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