summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-12 06:11:30 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-12 06:11:30 +0000
commit88618d58bc2145a8cb7162936e3471d30a8f9a42 (patch)
treea4ff94c27d7dcac41467659d40a093be72c781d3 /libiberty
parenteb0379c16816b93aa3306e40674807632263a7b0 (diff)
downloadgcc-88618d58bc2145a8cb7162936e3471d30a8f9a42.tar.gz
* floatformat.c (floatformat_to_double): Add a comment about a
potential source of warnings when compiling this file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101914 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/floatformat.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index bb111110786..e2cbeb4741e 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,5 +1,10 @@
2005-07-12 Ben Elliston <bje@au.ibm.com>
+ * floatformat.c (floatformat_to_double): Add a comment about a
+ potential source of warnings when compiling this file.
+
+2005-07-12 Ben Elliston <bje@au.ibm.com>
+
* pexecute.c (pexecute): Cast string litrals to char *.
* regex.c (re_comp): Cast a call to gettext() to char *.
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index 41000f459e4..e466f53a7ab 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