+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>
PR middle-end/38343
} elseif [ string match "*32-bit*" $file_string ] {
set native_cflags "-m32"
}
- } elseif [istarget "*-*-darwin*"] {
+ } elseif [istarget "powerpc*-*-darwin*"] {
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"
- } 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"
+ }
+ }
if [file exists "linkage-y.o"] then {
file delete "linkage-y.o"