The HP libm doesn't support the ERANGE error for exp2(). So, we need to skip this test as on sun unix.
Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net
2016-01-11 John David Anglin <dang...@gcc.gnu.org> PR tree-optimization/68356 * gcc.dg/torture/pr68264.c: Disable exp2 ERANGE test on hppa unix. Index: gcc.dg/torture/pr68264.c =================================================================== --- gcc.dg/torture/pr68264.c (revision 232191) +++ gcc.dg/torture/pr68264.c (working copy) @@ -78,8 +78,9 @@ if (0) TEST (log1p (d), LARGE_NEG_EDOM); TEST (exp (d), POWER_ERANGE); -#if defined (__sun__) && defined (__unix__) - /* Disabled due to a bug in Solaris libm. */ +#if (defined (__sun__) || defined(__hppa__)) && defined (__unix__) + /* Disabled due to a bug in Solaris libm. HP PA-RISC libm doesn't support + ERANGE for exp2. */ if (0) #endif {