This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 4.1 commited] Port patch for PR 28084 to 4.1 branch
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 10 Jul 2006 10:16:46 -0700 (PDT)
- Subject: [PATCH 4.1 commited] Port patch for PR 28084 to 4.1 branch
- Reply-to: sje at cup dot hp dot com
I am commiting this ToT patch to the 4.1 branch because the patch that
caused the problem was also put on the 4.1 branch. This is the same
issue as PR 28320. The patch that triggered this failure was PR 27227.
Tested on IA64 HP-UX with the 4.1 branch.
Steve Ellcey
sje@cup.hp.com
2006-07-10 Steve Ellcey <sje@cup.hp.com>
PR target/28084
* inclhack.def (hpux_extern_errno): New.
* fixincl.x: Regenerate.
Index: inclhack.def
===================================================================
--- inclhack.def (revision 114920)
+++ inclhack.def (working copy)
@@ -1716,6 +1716,17 @@ fix = {
test_text = "extern union mpinfou spu_info[];";
};
+fix = {
+ hackname = hpux_extern_errno;
+ mach = "*-hp-hpux10.*";
+ mach = "*-hp-hpux11.[0-2]*";
+ files = errno.h;
+ select = "^[ \t]*extern int errno;$";
+ c_fix = format;
+ c_fix_arg = "#ifdef __cplusplus\nextern \"C\" {\n#endif\n%0\n#ifdef __cplusplus\n}\n#endif";
+ test_text = " extern int errno;\n";
+};
+
/*
* Fix glibc definition of HUGE_VAL in terms of hex floating point constant