Commit 42a9e4e4 by David Billinghurst Committed by Richard Henderson

linkage.exp: Pass appropriate flags to native compiler for irix6.2

        * gcc.misc-tests/linkage.exp: Pass appropriate flags to native
        compiler for irix6.2

From-SVN: r42719
parent e944097a
2001-05-30 David.Billinghurst <David.Billinghurst@riotinto.com>
* gcc.misc-tests/linkage.exp: Pass appropriate flags to native
compiler for irix6.2
2001-05-30 Nathan Sidwell <nathan@codesourcery.com> 2001-05-30 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/optimize3.C: New file. * g++.old-deja/g++.other/optimize3.C: New file.
......
...@@ -28,9 +28,13 @@ if [isnative] then { ...@@ -28,9 +28,13 @@ if [isnative] then {
# Need to ensure ABI for native compiler matches gcc # Need to ensure ABI for native compiler matches gcc
set native_cflags "" set native_cflags ""
if [istarget "mips-sgi-irix6*"] { if [istarget "mips-sgi-irix6*"] {
if [ string match "*64*" [exec file "linkage-x.o"] ] { set file_string [exec file "linkage-x.o"]
if [ string match "*64*" $file_string ] {
set native_cflags "-64" set native_cflags "-64"
} }
if [ string match "N32" $file_string ] {
set native_cflags "-n32"
}
} }
catch { exec rm -f linkage-y.o } catch { exec rm -f linkage-y.o }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment