real.c (real_maxval): New function to return the largest finite value representable...
authorRoger Sayle <roger@eyesopen.com>
Fri, 23 May 2003 03:46:53 +0000 (03:46 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 23 May 2003 03:46:53 +0000 (03:46 +0000)
commit18c2511ccbc14dc2899b0fb6ec60935ac87087c2
tree5b38df8d0da0fa5e04c432815e2f600b41d5f2e5
parenta8e097d6db75fdb7fb530bd571647a656376fe97
real.c (real_maxval): New function to return the largest finite value representable in a given mode (i.e.

* real.c (real_maxval): New function to return the largest finite
value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
* real.h (real_maxval): Prototype here.
* fold-const.c (fold_inf_compare): Transform comparisons against
+-Infinity into comparisons against DBL_MAX (or equivalent).

* gcc.c-torture/execute/ieee/inf-2.c: New test case.

From-SVN: r67112
gcc/ChangeLog
gcc/fold-const.c
gcc/real.c
gcc/real.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/ieee/inf-2.c [new file with mode: 0644]