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

[PATCH 4.1 commited] Port patch for PR 28084 to 4.1 branch


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


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