aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Billinghurst <David.Billinghurst@riotinto.com>2001-05-23 19:53:00 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-05-23 19:53:00 +0000
commit3af21e042726c560d19d78458003711513dac05e (patch)
tree50f232c90a0ba9f92553b99eb8b6ac49b49ca9de /gcc
parent62729350f1f7d6ce8a2b8ef153a715762285ed98 (diff)
downloadgcc-3af21e042726c560d19d78458003711513dac05e.zip
gcc-3af21e042726c560d19d78458003711513dac05e.tar.gz
gcc-3af21e042726c560d19d78458003711513dac05e.tar.bz2
linkage.exp: Pass appropriate flags to native compiler for irix6.5.
* gcc.misc-tests/linkage.exp: Pass appropriate flags to native compiler for irix6.5. From-SVN: r42511
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.misc-tests/linkage.exp15
2 files changed, 17 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d0b88ef..f27895a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-23 David.Billinghurst <David.Billinghurst@riotinto.com>
+
+ * gcc.misc-tests/linkage.exp: Pass appropriate flags to
+ native compiler for irix6.5.
+
Wed May 23 2001 Jeffrey D. Oldham <oldham@codesourcery.com>
* lib/g++.exp (g++_include_flags): Use args to compute
diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp
index 785b1f1..80d678a 100644
--- a/gcc/testsuite/gcc.misc-tests/linkage.exp
+++ b/gcc/testsuite/gcc.misc-tests/linkage.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 1988, 90-96, 1997, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1988, 90-96, 1997, 2000, 2001 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -24,12 +24,21 @@ if [isnative] then {
fail "linkage.c"
} else {
# This is a completely bogus test. Sorry.
+
+ # 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 native_cflags "-64"
+ }
+ }
+
catch { exec rm -f linkage-y.o }
send_log "cc -c $srcdir/$subdir/linkage-y.c >&/dev/null\n"
- catch { exec cc -c "$srcdir/$subdir/linkage-y.c" >&/dev/null }
+ catch { exec cc -c $native_cflags "$srcdir/$subdir/linkage-y.c" >&/dev/null }
if ![file exists "linkage-y.o"] then {
send_log "c89 -c $srcdir/$subdir/linkage-y.c >&/dev/null\n"
- catch { exec c89 -c "$srcdir/$subdir/linkage-y.c" >&/dev/null }
+ catch { exec c89 -c $native_cflags "$srcdir/$subdir/linkage-y.c" >&/dev/null }
}
if [file exists "linkage-y.o"] then {
set lines [gcc_target_compile "linkage-y.o linkage-x.o" "x" executable ""]