From 72f9377893a401cb13337523c1950d047d3c4acf Mon Sep 17 00:00:00 2001
From: Ben Elliston <bje@au.ibm.com>
Date: Tue, 12 Jul 2005 06:11:30 +0000
Subject: [PATCH] floatformat.c (floatformat_to_double): Add a comment about a
 potential source of warnings when compiling this file.

	* floatformat.c (floatformat_to_double): Add a comment about a
	potential source of warnings when compiling this file.

From-SVN: r101914
---
 libiberty/ChangeLog     | 5 +++++
 libiberty/floatformat.c | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index bb1111107868..e2cbeb4741ee 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+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 *.
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index 41000f459e48..e466f53a7abb 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
-- 
GitLab