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: linkage.exp on IA64 HP-UX


This patch fixes a spurious failure in linkage.exp on ia64-hp-hpux*;
the vendor compiler needs to be reminded to compile in 64-bit mode if
GCC is in that mode.

Tested on ia64-hp-hpux11.23 in 32-bit and 64-bit modes and applied on
the mainline and on the branch.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2003-08-22  Mark Mitchell  <mark@codesourcery.com>

	* gcc.misc-tests/linkage.exp: Add logic for ia64-hp-hpux*.

Index: gcc.misc-tests/linkage.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.misc-tests/linkage.exp,v
retrieving revision 1.10
diff -c -5 -p -r1.10 linkage.exp
*** gcc.misc-tests/linkage.exp	21 Oct 2002 15:42:23 -0000	1.10
--- gcc.misc-tests/linkage.exp	22 Aug 2003 21:34:58 -0000
*************** if [isnative] then {
*** 51,60 ****
--- 51,65 ----
  	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 "ia64-hp-hpux*"] {
+ 	    set file_string [exec file "linkage-x.o"]
+ 	    if [ string match "*ELF-64*" $file_string ] {
+ 		set native_cflags "+DD64"
+ 	    }
  	}
  
  	catch { exec rm -f linkage-y.o }
  	send_log "cc -c $native_cflags $srcdir/$subdir/linkage-y.c >&/dev/null\n"
  	catch { exec cc -c $native_cflags "$srcdir/$subdir/linkage-y.c" >&/dev/null }


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