From: Ben Elliston Date: Tue, 7 Apr 2009 03:26:32 +0000 (+0000) Subject: libgcc2.c (INFINITY): Use __builtin_huge_val... X-Git-Tag: releases/gcc-4.5.0~6856 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca22d882809dac6f2bf5d87edd0f16a1c0889ebe;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e8549dbd0d1..000bc5f8f5ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-04-07 Ben Elliston + + * 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 * dfp.c: Replace type punning assignments with memcpy throughout. diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 369c29f6abff..f6e74656bc6b 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. */