]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc2.c (INFINITY): Use __builtin_huge_val...
authorBen Elliston <bje@au.ibm.com>
Tue, 7 Apr 2009 03:26:32 +0000 (03:26 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Tue, 7 Apr 2009 03:26:32 +0000 (13:26 +1000)
* libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
as the latter produces a warning when the target does not support
infinity.

From-SVN: r145646

gcc/ChangeLog
gcc/libgcc2.c

index 5e8549dbd0d19c7ce3f1869dd53c065929acc0ea..000bc5f8f5ed19dce5ee6e243e5877b6f4fa74a9 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-07  Ben Elliston  <bje@au.ibm.com>
+
+       * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
+       as the latter produces a warning when the target does not support
+       infinity.
+
 2009-04-07  Ben Elliston  <bje@au.ibm.com>
 
        * dfp.c: Replace type punning assignments with memcpy throughout.
index 369c29f6abff1a201c390d2a6effbe272b7c6db9..f6e74656bc6ba2516549368d879fde66602e3262 100644 (file)
@@ -1807,7 +1807,7 @@ NAME (TYPE x, int m)
 #define isfinite(x)    __builtin_expect (!isnan((x) - (x)), 1)
 #define isinf(x)       __builtin_expect (!isnan(x) & !isfinite(x), 0)
 
-#define INFINITY       CONCAT2(__builtin_inf, CEXT) ()
+#define INFINITY       CONCAT2(__builtin_huge_val, CEXT) ()
 #define I              1i
 
 /* Helpers to make the following code slightly less gross.  */