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 s...@cup.hp.com 2011-08-23 Steve Ellcey <s...@cup.hp.com> PR libstdc++/50153 * inclhack.def (hpux11_abs): Extend to all hpux machines. * fixincl.x: Regenerate. 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;