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
This commit is contained in:
Ben Elliston 2009-04-07 03:26:32 +00:00 committed by Ben Elliston
parent 04b7027180
commit ca22d88280
2 changed files with 7 additions and 1 deletions

View 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.

View 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. */