summaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2009-04-07 03:26:32 +0000
committerBen Elliston <bje@gcc.gnu.org>2009-04-07 13:26:32 +1000
commitca22d882809dac6f2bf5d87edd0f16a1c0889ebe (patch)
tree32226c79e0fc25b9217da4aeb00f8df32681116a /gcc/libgcc2.c
parent04b7027180adea8565ee09d5549c38012dfae169 (diff)
downloadgcc-ca22d882809dac6f2bf5d87edd0f16a1c0889ebe.tar.gz
libgcc2.c (INFINITY): Use __builtin_huge_val...
* 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
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 369c29f6abf..f6e74656bc6 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -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. */