From 42a9e4e4718d3811d94471fddb6ce9c9197c30b9 Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Wed, 30 May 2001 13:32:33 -0700 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 9 +++++++-- gcc/testsuite/gcc.misc-tests/linkage.exp | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c5126b7020c..183ed033ebc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,11 +1,16 @@ +2001-05-30 David.Billinghurst + + * gcc.misc-tests/linkage.exp: Pass appropriate flags to native + compiler for irix6.2 + 2001-05-30 Nathan Sidwell * g++.old-deja/g++.other/optimize3.C: New file. 2001-05-29 Jeffrey Oldham - * 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 diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp index 80d678a86dd..47cd2e3fd36 100644 --- a/gcc/testsuite/gcc.misc-tests/linkage.exp +++ b/gcc/testsuite/gcc.misc-tests/linkage.exp @@ -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 } -- 2.30.2