This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Also check -m32 for i*86-*-linux*
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: janis187 at us dot ibm dot com
- Date: Thu, 12 Nov 2009 08:00:10 -0800
- Subject: PATCH: Also check -m32 for i*86-*-linux*
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
When building 32bit gcc on Linux/x86-64, we need to pass -m32 to native
gcc for testing. OK for trunk?
Thanks.
H.J.
----
2009-11-12 H.J. Lu <hongjiu.lu@intel.com>
* gcc.misc-tests/linkage.exp: Also check -m32 for i*86-*-linux*.
diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp
index 05c0311..768975a 100644
--- a/gcc/testsuite/gcc.misc-tests/linkage.exp
+++ b/gcc/testsuite/gcc.misc-tests/linkage.exp
@@ -57,7 +57,7 @@ if { [isnative] && ![is_remote host] } then {
if [ string match "*64-bit*" $file_string ] {
set native_cflags "-m64"
}
- } elseif [istarget "x86_64-*-linux*"] {
+ } elseif [expr [istarget "i*86-*-linux*"] || [istarget "x86_64-*-linux*"]] {
set file_string [exec file "linkage-x.o"]
if [ string match "*32-bit*" $file_string ] {
set native_cflags "-m32"