This is the mail archive of the gcc-bugs@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]

gcc-3.0 on HPUX-11


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


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