This is the mail archive of the mailing list for the binutils 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] bfd/ support for ia64-hp-hpux11.22

This small patch makes binutils much happier when compiling on ia64
running HP-UX.  The missing case in bfd/ causes bfd.h
to complain that the host's compiler has no 64-bit integer type.

I've decided to use "long long" [the same as for mips*-sgi-irix6*]
as this is guaranteed to be 64bits in both the +DD32 and +DD64 modes
of HP-UX's native cc, as well as when using gcc.

Hopefully this patch is small enough that I don't need a binutils
copyright assignment.  Is this patch OK for bfd?

2002-12-16  Roger Sayle  <>

	* (ia64-*-hpux*): Support 64 bit targets using
	the HP compiler's "long long".

RCS file: /cvs/src/src/bfd/,v
retrieving revision 1.9
diff -c -3 -p -r1.9
***	22 Jan 2002 00:47:21 -0000	1.9
---	16 Dec 2002 19:04:29 -0000
*************** hppa*-*-osf*)		HDEFINES=-DHOST_HPPAOSF ;
*** 32,37 ****
--- 32,41 ----

  ia64-*-linux*)		host64=true; HOST_64BIT_TYPE=long ;;
  ia64-*-aix*)		host64=true; HOST_64BIT_TYPE=long ;;
+ ia64-*-hpux*)		host64=true
+ 			HOST_64BIT_TYPE="long long";
+ 			HOST_U_64BIT_TYPE="unsigned long long";
+ 			;;

  i[3456]86-sequent-bsd*)	HDEFINES=-Dshared=genshared ;;
  i[3456]86-sequent-sysv4*) ;;

Roger Sayle,                         E-mail:
OpenEye Scientific Software,         WWW:
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833

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