From e73bbd214196767e756ac90d7867603a07af4d51 Mon Sep 17 00:00:00 2001 From: bje Date: Tue, 7 Apr 2009 03:26:32 +0000 Subject: [PATCH] * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf, as the latter produces a warning when the target does not support infinity. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145646 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/libgcc2.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e8549dbd0d..000bc5f8f5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 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. * Makefile.in (dfp.o-warn): Remove. 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. */ -- 2.11.0