Mods/diffs to support hpux B11.00
Jeffrey A Law
law@cygnus.com
Thu Nov 19 21:11:00 GMT 1998
In message < 199811132305.PAA19677@aptex.com >you write:
> I'm forwarding this note to the egcs distribution as they appear
> likely to have the same problems listed below, though I've not
> verified this.
>
> Hi, I've had to make the following changes to gnu-2.8.1 in order to
> get it to work with the gnu assembler on the following HPUX machine.
> Note that something similar may need to be done for hppa1.0.
>
> % uname -a
> HP-UX tweety B.11.00 A 9000/712 2012958537 two-user license
>
> --- gcc-2.8.1/configure.orig Fri Nov 13 14:44:27 1998
> +++ gcc-2.8.1/configure Fri Nov 13 14:45:12 1998
> @@ -3116,19 +3116,6 @@
> install_headers_dir=install-headers-cpio
> use_collect2=yes
> ;;
> + hppa1.1-*-hpux11*)
> + target_cpu_default=1
> + tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
> + xm_file=pa/xm-pahpux.h
> + xmake_file=pa/x-pa-hpux
> + if [ x$gas = xyes ]
> + then
> + tm_file="${tm_file} pa/pa-gas.h"
> + fi
> + broken_install=yes
> + install_headers_dir=install-headers-cpio
> + use_collect2=yes
> + ;;
> hppa1.0-*-hpux*)
> tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
> xm_file=pa/xm-pahpux.h
> I also had to add the macro definition "-D__LP64__" into the specs
> file. I put it into the "*cpp:" section, however I'm not sure that
> this is necessarily the best place to put it. This macro was required
> to build "binutils-2.9.1" with gcc (hpux-core.c was failing to compile
> because uint64_t wasn't defined). I suppose that this macro might
> require the creation of "pa/pa-hpux11.h" in the gcc/egcs distribution.
I suspect you are going to need to create pa-hpux11.h.
Defining __LP64__ is the wrong solution. I suspect there is a different
symbol that you need to define to get various extensions. Run the hpux11
C compiler to find out what predefines it uses.
jeff
More information about the Gcc-bugs
mailing list