This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-3.0 on HPUX-11
- To: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, bkorb at gnu dot org
- Subject: gcc-3.0 on HPUX-11
- From: Jim Buffenbarger <buff at hpbs9968 dot boi dot hp dot com>
- Date: Wed, 27 Jun 2001 12:56:39 -0600
- Cc: buff at hpbs9968 dot boi dot hp dot com
Hi Folks,
I was able to build:
binutils-2.11.2.tar.gz
gcc-3.0.tar.gz
on a:
HP-UX B.11.00 A 9000/785
After I did two things.
Thing 1) For binutils, I had to add the line:
#include <stdio.h>
to the beginning of:
include/libiberty.h
to make size_t available.
Thing 2) For gcc, I had to add a fix:
/*
* Wed Jun 27 07:58:51 2001
* <buff@boi.hp.com> Jim Buffenbarger
* HP-UX B.11.00 A 9000/785
* Delete C++ double pow (double, int) inline function from HP-UX 11
* math.h to prevent clash with define in c_std/bits/std_cmath.h.
*/
fix = {
hackname = hpux11_cpp_pow_inline;
files = math.h;
select = " +inline double pow\\(double d,int expon\\) {\n"
" +return pow\\(d, \\(double\\)expon\\);\n"
" +}\n";
c_fix = format;
c_fix_arg = "";
test_text =
" inline double pow(double d,int expon) {\n"
" return pow(d, (double)expon);\n"
" }\n";
};
to the end of:
gcc/fixinc/inclhack.def
and regenerate:
fixincl.x
in the usual autogen way. This avoids a double definition
error.
There was already a similar fix for HPUX-10, but it wasn't
being selected.
-- Jim