mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
6c5844d2c6
commit
72f9377893
|
@ -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>
|
2005-07-12 Ben Elliston <bje@au.ibm.com>
|
||||||
|
|
||||||
* pexecute.c (pexecute): Cast string litrals to char *.
|
* pexecute.c (pexecute): Cast string litrals to char *.
|
||||||
|
|
|
@ -306,6 +306,13 @@ floatformat_to_double (const struct floatformat *fmt,
|
||||||
mant_bits_left -= mant_bits;
|
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)
|
if (nan)
|
||||||
dto = NAN;
|
dto = NAN;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue