2004-06-22 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2004 19:52:33 +0000 (19:52 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2004 19:52:33 +0000 (19:52 +0000)
PR target/14800
* gcc.misc-tests/linkage.exp: Set native_cflags to "-m32" for
x86_64-*-linux* when compiling for 32bit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83513 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/linkage.exp

index 5a41644..68598e4 100644 (file)
@@ -1,3 +1,9 @@
+2004-06-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/14800
+       * gcc.misc-tests/linkage.exp: Set native_cflags to "-m32" for
+       x86_64-*-linux* when compiling for 32bit.
+
 2004-06-21  Andrew Pinski  <apinski@apple.com>
 
        * gcc.dg/pch/struct-1.c: New.
index 7aa9966..9c8936d 100644 (file)
@@ -53,6 +53,11 @@ if [isnative] then {
            if [ string match "*32-bit*" $file_string ] {
                set native_cflags "-m31"
            }
+       } elseif [istarget "x86_64-*-linux*"] {
+           set file_string [exec file "linkage-x.o"]
+           if [ string match "*32-bit*" $file_string ] {
+               set native_cflags "-m32"
+           }
        } elseif [istarget "*-hp-hpux*"] {
            set file_string [exec file "linkage-x.o"]
            if [ string match "*ELF-64*" $file_string ] {