diff options
| author | joerg <joerg@NetBSD.org> | 2010-03-01 00:15:47 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2010-03-01 00:15:47 +0000 |
| commit | 7780622b8de22e5d3b7de47fee57fa4e5678e162 (patch) | |
| tree | 1bfde1d1dc6bc6d9eea2d99a4037f4185d5e6c74 /gnu | |
| parent | bfbe4c3572835b0b81173c1506f0cb4ea3710462 (diff) | |
Use HUGE_VAL on VAX as INFINITY requires a warning according to ISO C99
on VAX. Use the less intrusive approach of a conditional here.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/gcc4/libiberty/floatformat.c | 4 | ||||
| -rw-r--r-- | gnu/dist/gdb6/libiberty/floatformat.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gnu/dist/gcc4/libiberty/floatformat.c b/gnu/dist/gcc4/libiberty/floatformat.c index 75027a01d43..da9cf1a2af5 100644 --- a/gnu/dist/gcc4/libiberty/floatformat.c +++ b/gnu/dist/gcc4/libiberty/floatformat.c @@ -351,7 +351,11 @@ floatformat_to_double (const struct floatformat *fmt, if (nan) dto = NAN; else +#ifdef __vax__ + dto = HUGE_VAL; +#else dto = INFINITY; +#endif if (get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1)) dto = -dto; diff --git a/gnu/dist/gdb6/libiberty/floatformat.c b/gnu/dist/gdb6/libiberty/floatformat.c index 0bbb8ed9889..8234099105e 100644 --- a/gnu/dist/gdb6/libiberty/floatformat.c +++ b/gnu/dist/gdb6/libiberty/floatformat.c @@ -351,7 +351,11 @@ floatformat_to_double (const struct floatformat *fmt, if (nan) dto = NAN; else +#ifdef __vax__ + dto = HUGE_VAL; +#else dto = INFINITY; +#endif if (get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1)) dto = -dto; |
