This is the mail archive of the 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]
Other format: [Raw text]

Patch to avoid more fixes on HP-UX

This patch bypasses more unnecessary fixes fixincludes makes on HP-UX:

sysz_stdlib_for_sun is another case _CLASSIC_ANSI_TYPES should bypass.

Part of sco_math was wrongly triggered after disabling
hpux8_bogus_inlines (leading to an unmatched #ifdef __GNUC__ in the
fixed header).

Bootstrapped with no regressions on hppa2.0w-hp-hpux11.11.  OK to

Joseph S. Myers      (personal mail) (CodeSourcery mail) (Bugzilla assignments and CCs)

2004-11-12  Joseph S. Myers  <>

	* inclhack.def (sco_math): Bypass on __GNUG__.
	(sysz_stdlib_for_sun): Bypass on _CLASSIC_ANSI_TYPES.
	* fixincl.x: Regenerate.

diff -rupN fixincludes.orig/inclhack.def fixincludes/inclhack.def
--- fixincludes.orig/inclhack.def	2004-11-09 23:12:37.000000000 +0000
+++ fixincludes/inclhack.def	2004-11-11 21:56:46.000000000 +0000
@@ -2431,6 +2431,7 @@ fix = {
     files    = ods_30_compat/math.h;
     files    = oldstyle/math.h;
     select   = "inline double abs";
+    bypass   = "__GNUG__";
     sed      = "/#define.*__fp_class(a) \\\\/i\\\n"
 	       "#ifndef __GNUC__\n";
     sed      =
@@ -3519,6 +3520,7 @@ fix = {
 fix = {
     hackname = sysz_stdlib_for_sun;
     files    = stdlib.h;
+    bypass   = "_CLASSIC_ANSI_TYPES";
     select    = "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
     c_fix     = format;

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