On Fri, Dec 04, 2015 at 08:35:10AM -0600, Albert Chin wrote: > I am attempting to build GCC 4.7.4, 4.8.5, 4.9.3, and 5.2.0 on HP-UX > 11.31/PA. I have built GCC 4.4.6 successfully on this platform. I am > using GCC 4.4.6 as the bootstrap compiler. > > [[ snip snip ]] > > What is the best way to fix this? On HP-UX 11.11/PA and 11.23/PA, > long_double is converted to "long double" by fixincludes/inclhack.def: > /* > * HP-UX long_double > */ > fix = { > hackname = hpux_long_double; > mach = "*-*-hpux10*"; > mach = "*-*-hpux11.[012]*"; > files = stdlib.h; > select = "extern[ \t]long_double[ \t]strtold"; > bypass = "long_double_t"; > sed = "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D"; > sed = "s/long_double/long double/g"; > > test_text = "# ifndef _LONG_DOUBLE\n" > "# define _LONG_DOUBLE\n" > " typedef struct {\n" > " unsigned int word1, word2, word3, word4;\n" > " } long_double;\n" > "# endif /* _LONG_DOUBLE */\n" > "extern long_double strtold(const char *, char **);\n"; > }; > > Is there a reason this is not done for HP-UX 11.31? I patched fixincludes/inclhack.def to include HP-UX 11.31 for the hpux_long_double fix above and the build succeeded. I will submit a patch. -- albert chin (china@xxxxxxxxxxxxxxxxxx)