aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2015-02-10 10:09:49 +0000
committerRainer Orth <ro@gcc.gnu.org>2015-02-10 10:09:49 +0000
commit9e271531390b70fd400fdfbd1ba5a774f9fe4df5 (patch)
treeeb3f4a25ccd2cc0944a6e25152366db3f36040e7 /fixincludes/tests
parentbab4f4e37f5cbaf7807119d40d3b5ebd5bea856f (diff)
downloadgcc-9e271531390b70fd400fdfbd1ba5a774f9fe4df5.zip
gcc-9e271531390b70fd400fdfbd1ba5a774f9fe4df5.tar.gz
gcc-9e271531390b70fd400fdfbd1ba5a774f9fe4df5.tar.bz2
Fix <iso/math_c99.h> signbit on Solaris
fixincludes: * inclhack.def (solaris_math_11): New fix. * fixincl.x: Regenerate. * tests/base/iso/math_c99.h [SOLARIS_MATH_11_CHECK]: New test. gcc/testsuite: * gcc.dg/signbit-sa.c: New test. From-SVN: r220577
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/iso/math_c99.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fixincludes/tests/base/iso/math_c99.h b/fixincludes/tests/base/iso/math_c99.h
index 3758cb9..6c642e5 100644
--- a/fixincludes/tests/base/iso/math_c99.h
+++ b/fixincludes/tests/base/iso/math_c99.h
@@ -75,3 +75,14 @@
#undef isunordered
#define isunordered(x, y) __builtin_isunordered(x, y)
#endif /* SOLARIS_MATH_9_CHECK */
+
+
+#if defined( SOLARIS_MATH_11_CHECK )
+/* @(#)math_c99.h 1.14 13/03/27 */
+#undef signbit
+#define signbit(x) (sizeof(x) == sizeof(float) \
+ ? __builtin_signbitf(x) \
+ : sizeof(x) == sizeof(long double) \
+ ? __builtin_signbitl(x) \
+ : __builtin_signbit(x))
+#endif /* SOLARIS_MATH_11_CHECK */