From 96a4ec035df0805444de4d6c67323f77ed0a79bc Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 22 Jun 2004 19:52:33 +0000 Subject: [PATCH] re PR target/14800 (Some x86 tests aren't valid for x86_64) 2004-06-22 H.J. Lu PR target/14800 * gcc.misc-tests/linkage.exp: Set native_cflags to "-m32" for x86_64-*-linux* when compiling for 32bit. From-SVN: r83513 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.misc-tests/linkage.exp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5a416441f3d..68598e4ef37 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-06-22 H.J. Lu + + 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 * gcc.dg/pch/struct-1.c: New. diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp index 7aa99667566..9c8936db05a 100644 --- a/gcc/testsuite/gcc.misc-tests/linkage.exp +++ b/gcc/testsuite/gcc.misc-tests/linkage.exp @@ -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 ] { -- 2.30.2