linkage.exp: Also check -m32 for i*86-*-linux*.

2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.misc-tests/linkage.exp: Also check -m32 for i*86-*-linux*.

From-SVN: r154303
This commit is contained in:
H.J. Lu 2009-11-18 17:50:45 +00:00 committed by H.J. Lu
parent 573282f83b
commit 76425f8978
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
* gcc.misc-tests/linkage.exp: Also check -m32 for i*86-*-linux*.
2009-11-18 Nick Clifton <nickc@redhat.com>
* g++.dg/lto/20091002-1_0.C: Replace -shared with -r -nostlib.

View File

@ -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 {[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"