re PR middle-end/36077 (Expressions result is wrong)
authorRichard Guenther <rguenther@suse.de>
Tue, 29 Apr 2008 13:52:53 +0000 (13:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 Apr 2008 13:52:53 +0000 (13:52 +0000)
commit81ad578ea1b8fbeafe172152cc27c0f4911502ce
tree5652cba588dcd682df8033c5a5aaac5927d6ce38
parenta170f0affe9a70cbe4e156a4323c03ac76024422
re PR middle-end/36077 (Expressions result is wrong)

2008-04-29  Richard Guenther  <rguenther@suse.de>

PR middle-end/36077
* fold-const.c (extract_muldiv_1): In combining division constants
make sure to never overflow.

* gcc.c-torture/execute/pr36077.c: New testcase.

From-SVN: r134792
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr36077.c [new file with mode: 0644]