summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/linkage.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests/linkage.exp')
-rw-r--r--gcc/testsuite/gcc.misc-tests/linkage.exp19
1 files changed, 4 insertions, 15 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp
index 887f31b21a..eeef6c25a1 100644
--- a/gcc/testsuite/gcc.misc-tests/linkage.exp
+++ b/gcc/testsuite/gcc.misc-tests/linkage.exp
@@ -1,5 +1,4 @@
-# Copyright (C) 1988, 90-96, 1997, 2000, 2001, 2002, 2007, 2008, 2010
-# Free Software Foundation, Inc.
+# Copyright (C) 1988-2014 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
@@ -28,18 +27,6 @@ if { [isnative] && ![is_remote host] } then {
# Need to ensure ABI for native compiler matches gcc
set native_cflags ""
- if [istarget "mips-sgi-irix6*"] {
- set file_string [exec file "linkage-x.o"]
- if [ string match "*64*" $file_string ] {
- set native_cflags "-64"
- }
- if [ string match "*ELF 32*" $file_string ] {
- set native_cflags "-32"
- }
- if [ string match "*N32*" $file_string ] {
- set native_cflags "-n32"
- }
- }
if [istarget "sparc*-sun-solaris2*"] {
set file_string [exec file "linkage-x.o"]
if [ string match "*64*" $file_string ] {
@@ -61,7 +48,9 @@ if { [isnative] && ![is_remote host] } then {
if [ string match "*64-bit*" $file_string ] {
set native_cflags "-m64"
}
- } elseif {[istarget "i*86-*-linux*"] || [istarget "x86_64-*-linux*"]} {
+ } elseif {[istarget "i*86-*-linux*"]
+ || [istarget "i*86-*-gnu*"]
+ || [istarget "x86_64-*-linux*"]} then {
set file_string [exec file "linkage-x.o"]
if [ string match "*32-bit*" $file_string ] {
set native_cflags "-m32"