aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/gcc.misc-tests/linkage.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp
index afed2b8..2cb109e 100644
--- a/gcc/testsuite/gcc.misc-tests/linkage.exp
+++ b/gcc/testsuite/gcc.misc-tests/linkage.exp
@@ -38,6 +38,18 @@ if { [isnative] && ![is_remote host] } then {
# Need to ensure ABI for native compiler matches gcc
set native_cflags ""
+ if [istarget "mips*-linux*"] {
+ set file_string [exec file "linkage-x.o"]
+ if [ string match "*64*" $file_string ] {
+ set native_cflags "-mabi=64"
+ }
+ if [ string match "*ELF 32*" $file_string ] {
+ set native_cflags "-mabi=32"
+ }
+ if [ string match "*N32*" $file_string ] {
+ set native_cflags "-mabi=n32"
+ }
+ }
if [istarget "sparc*-sun-solaris2*"] {
set file_string [exec file "linkage-x.o"]
if [ string match "*64*" $file_string ] {