diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-05-24 20:52:00 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-05-24 20:52:00 +0000 |
commit | 7de4b37ef1574e4311f34c5ea7d268670d7471ef (patch) | |
tree | 51eb02b5ead105592be1a27adb6046ca20e87c0c /fixincludes/tests | |
parent | c36c98215e53eb99725fa5bb187aa7b3ac4c22f7 (diff) | |
download | gcc-7de4b37ef1574e4311f34c5ea7d268670d7471ef.zip gcc-7de4b37ef1574e4311f34c5ea7d268670d7471ef.tar.gz gcc-7de4b37ef1574e4311f34c5ea7d268670d7471ef.tar.bz2 |
inclhack.def (solaris_math_4): Use GCC's __builtin_fpclassify.
* inclhack.def (solaris_math_4): Use GCC's __builtin_fpclassify.
* tests/base/iso/math_c99.h: Update.
* fixincl.x: Regenerate.
From-SVN: r135852
Diffstat (limited to 'fixincludes/tests')
-rw-r--r-- | fixincludes/tests/base/iso/math_c99.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fixincludes/tests/base/iso/math_c99.h b/fixincludes/tests/base/iso/math_c99.h index e3b2799..4d9b631 100644 --- a/fixincludes/tests/base/iso/math_c99.h +++ b/fixincludes/tests/base/iso/math_c99.h @@ -38,16 +38,7 @@ #ident "@(#)math_c99.h 1.9 04/11/01 SMI" #undef fpclassify #define fpclassify(x) \ - __extension__ ({ const __typeof(x) __x_fp = (x); \ - isnan(__x_fp) \ - ? FP_NAN \ - : isinf(__x_fp) \ - ? FP_INFINITE \ - : isnormal(__x_fp) \ - ? FP_NORMAL \ - : __x_fp == 0.0 \ - ? FP_ZERO \ - : FP_SUBNORMAL; }) + __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x)) #endif /* SOLARIS_MATH_4_CHECK */ |