]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (const_binop): Don't constant fold the operation if the result has overf...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 16 Nov 2005 17:15:23 +0000 (17:15 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 16 Nov 2005 17:15:23 +0000 (17:15 +0000)
commit68328cdaefaee1b9e218e08ff2955806ddd20403
tree6894347795260dbf98ccdad4e02632f18f90f9e7
parent74d9c39f6aeaec9ed8a99167890283f4519219dd
fold-const.c (const_binop): Don't constant fold the operation if the result has overflowed and...

* 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.

From-SVN: r107092
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]