aboutsummaryrefslogtreecommitdiff
path: root/libiberty/floatformat.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-07-12 10:35:00 +0000
committerDJ Delorie <dj@redhat.com>2005-07-12 10:35:00 +0000
commitf2942ea4dd6da2fb288214764c0be02e859d4177 (patch)
tree4e57c1a652f73fb67479304dcbddd0a342a119d7 /libiberty/floatformat.c
parent5817d0c78b50778a0b198a26221571cf0aec2ad3 (diff)
downloadgdb-f2942ea4dd6da2fb288214764c0be02e859d4177.zip
gdb-f2942ea4dd6da2fb288214764c0be02e859d4177.tar.gz
gdb-f2942ea4dd6da2fb288214764c0be02e859d4177.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r--libiberty/floatformat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index 41000f4..e466f53 100644
--- a/libiberty/floatformat.c
+++ b/libiberty/floatformat.c
@@ -306,6 +306,13 @@ floatformat_to_double (const struct floatformat *fmt,
mant_bits_left -= mant_bits;
}
+ /* On certain systems (such as GNU/Linux), the use of the
+ INFINITY macro below may generate a warning that can not be
+ silenced due to a bug in GCC (PR preprocessor/11931). The
+ preprocessor fails to recognise the __extension__ keyword in
+ conjunction with the GNU/C99 extension for hexadecimal
+ floating point constants and will issue a warning when
+ compiling with -pedantic. */
if (nan)
dto = NAN;
else