This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] bfd/configure.host support for ia64-hp-hpux11.22
- From: Roger Sayle <roger at www dot eyesopen dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 16 Dec 2002 14:24:28 -0700 (MST)
- Subject: [PATCH] bfd/configure.host 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/configure.host 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 <roger@eyesopen.com>
* configure.host (ia64-*-hpux*): Support 64 bit targets using
the HP compiler's "long long".
Index: configure.host
===================================================================
RCS file: /cvs/src/src/bfd/configure.host,v
retrieving revision 1.9
diff -c -3 -p -r1.9 configure.host
*** configure.host 22 Jan 2002 00:47:21 -0000 1.9
--- configure.host 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
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833