* fold-const.c (const_binop): Don't constant fold the operation
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Nov 2005 17:15:23 +0000 (17:15 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Nov 2005 17:15:23 +0000 (17:15 +0000)
commitf2e0dda3066e3d34f0c5424885bf4b1e5591fd81
tree6894347795260dbf98ccdad4e02632f18f90f9e7
parent363d487eb26583d7e66b35d055543cf7e3348dd9
* fold-const.c (const_binop): Don't constant fold the operation
if the result has overflowed and flag_trapping_math.
* simplify-rtx.c (simplify_const_binary_operation): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107092 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-overflow-1.c [new file with mode: 0644]