* real.c (real_maxval): New function to return the largest finite
commitac4bd9a0eed8a2ccbbaee8480dba1e3a646458cc
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2003 03:46:53 +0000 (23 03:46 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2003 03:46:53 +0000 (23 03:46 +0000)
tree5b38df8d0da0fa5e04c432815e2f600b41d5f2e5
parent07fea4789bd395e94460b94cceac2e1f925dd607
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67112 138bc75d-0d04-0410-961f-82ee72b054a4
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]