c-lex.c (interpret_float): Give a pedwarn rather than a warning for an out-of-range...
authorJoseph Myers <jsm@polyomino.org.uk>
Fri, 8 Oct 2004 20:25:42 +0000 (21:25 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 8 Oct 2004 20:25:42 +0000 (21:25 +0100)
commit6d84156b878215c40f1b934c8a24e3c39485a978
tree31256910f3b10e27ff12fd3f87bb0f45c2c64979
parent176f9629607f429d33d6461d0eed9263017da7ca
c-lex.c (interpret_float): Give a pedwarn rather than a warning for an out-of-range floating point constant.

* c-lex.c (interpret_float): Give a pedwarn rather than a warning
for an out-of-range floating point constant.
* builtins.c (fold_builtin_inf): Give a pedwarn rather than a
warning if the target format does not support infinities.

testsuite:
* gcc.dg/float-range-1.c, gcc.dg/float-range-2.c: New tests.

From-SVN: r88793
gcc/ChangeLog
gcc/builtins.c
gcc/c-lex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/float-range-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/float-range-2.c [new file with mode: 0644]