linkage.exp: Pass appropriate flags to native compiler for irix6.2
authorDavid Billinghurst <David.Billinghurst@riotinto.com>
Wed, 30 May 2001 20:32:33 +0000 (13:32 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 30 May 2001 20:32:33 +0000 (13:32 -0700)
        * gcc.misc-tests/linkage.exp: Pass appropriate flags to native
        compiler for irix6.2

From-SVN: r42719

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

index c5126b7020cf75873b57b8fd179feeba17323fa6..183ed033ebc565b65f5f588f7b235d3d7709d04e 100644 (file)
@@ -1,11 +1,16 @@
+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>
 
        * g++.old-deja/g++.other/optimize3.C: New file.
 
 2001-05-29  Jeffrey Oldham  <oldham@codesourcery.com>
 
-        * gcc.c-torture/compile/20010518-2.x: New file to compile, not
-        assemble.
+       * gcc.c-torture/compile/20010518-2.x: New file to compile, not
+       assemble.
 
 2001-05-26  Nathan Sidwell  <nathan@codesourcery.com>
 
index 80d678a86ddf2505e91a6fd2cfc7d2fcf561b123..47cd2e3fd36b22418d668a48ccac9556c11a9130 100644 (file)
@@ -28,9 +28,13 @@ if [isnative] then {
        # Need to ensure ABI for native compiler matches gcc
        set native_cflags ""
        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"
            }
+           if [ string match "N32" $file_string ] {
+               set native_cflags "-n32"
+           }
        }
 
        catch { exec rm -f linkage-y.o }