Patchwork [hpux,committed] Fix libstdc++/50153, hppa*-hp-hpux11* build problem

login
register
mail settings
Submitter Steve Ellcey
Date Aug. 23, 2011, 9:31 p.m.
Message ID <201108232131.p7NLVFZ23680@adlwrk06.cup.hp.com>
Download mbox | patch
Permalink /patch/111194/
State New
Headers show

Comments

Steve Ellcey - Aug. 23, 2011, 9:31 p.m.
The recent change for libstdc++/1773 included a change that defined
__cplusplus to be 199711L instead of 1.  That caused a problem with the
integer abs() definition on hppa*-hp-hpux11*.  It did not cause a
problem on ia64-hp-hpux11* because of a fixincludes rule (hpux11_abs)
that was applied to ia64-hp-hpux11*.  This patch extends that rule
to the hppa platform by changing 'ia64-hp-hpux11*' to '*-hp-hpux11*'

I tested the fix on hppa2.0w-hp-hpux11.11 and since this only affects
HP-UX platforms I will go ahead and check it in.  Since I am changing
the 'mach' entry for a fix and not adding a new fix no new test is
needed and I verified that making check-fixincludes still worked.

Steve Ellcey
sje@cup.hp.com


2011-08-23  Steve Ellcey  <sje@cup.hp.com>

	PR libstdc++/50153
	* inclhack.def (hpux11_abs): Extend to all hpux machines.
	* fixincl.x: Regenerate.

Patch

Index: inclhack.def
===================================================================
--- inclhack.def	(revision 177990)
+++ inclhack.def	(working copy)
@@ -1862,7 +1862,7 @@  fix = {
  */
 fix = {
     hackname  = hpux11_abs;
-    mach      = "ia64-hp-hpux11*";
+    mach      = "*-hp-hpux11*";
     files     = stdlib.h;
     select    = "ifndef _MATH_INCLUDED";
     c_fix     = format;