This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] testsuite: linkage.exp: s390: add check to add -m64


Hi,

the following testcase fails, when building a 31bit gcc on a 64bit system:

FAIL: gcc.misc-tests/linkage.c link

The attached patch adds an additional check to linkage.exp so that -m64 is set
when checking a 31bit compiler on a 64bit system.

linkage.exp=* checks run on s390 and s390x without regressions.

OK?

Bye,

-Andreas-


2005-02-15  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc/testsuite/gcc.misc-tests/linkage.exp (s390): Check for 64bit 
	added.


Index: gcc/testsuite/gcc.misc-tests/linkage.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.misc-tests/linkage.exp,v
retrieving revision 1.15
diff -p -c -r1.15 linkage.exp
*** gcc/testsuite/gcc.misc-tests/linkage.exp	11 Nov 2004 18:01:56 -0000	1.15
--- gcc/testsuite/gcc.misc-tests/linkage.exp	15 Feb 2005 09:08:16 -0000
*************** if [isnative] then {
*** 48,58 ****
  		set native_cflags "-xarch=v9"
  	    }
  	}
! 	if [istarget "s390x-*-linux*"] {
  	    set file_string [exec file "linkage-x.o"]
  	    if [ string match "*32-bit*" $file_string ] {
  		set native_cflags "-m31"
  	    }
  	} elseif [istarget "x86_64-*-linux*"] {
  	    set file_string [exec file "linkage-x.o"]
  	    if [ string match "*32-bit*" $file_string ] {
--- 48,61 ----
  		set native_cflags "-xarch=v9"
  	    }
  	}
! 	if [istarget "s390*-*-linux*"] {
  	    set file_string [exec file "linkage-x.o"]
  	    if [ string match "*32-bit*" $file_string ] {
  		set native_cflags "-m31"
  	    }
+ 	    if [ string match "*64-bit*" $file_string ] {
+ 		set native_cflags "-m64"
+ 	    }
  	} elseif [istarget "x86_64-*-linux*"] {
  	    set file_string [exec file "linkage-x.o"]
  	    if [ string match "*32-bit*" $file_string ] {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]