OSDN Git Service

2007-10-31 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Oct 2007 12:33:05 +0000 (12:33 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Oct 2007 12:33:05 +0000 (12:33 +0000)
commit28fa8094b7fe3acda4232611bb99738e2d3b0c37
tree2035bbc1a2f604178b758bb8ac8aec2c7229d814
parent8cafc742678385cb7aab9b598e2828f3a17b975f
2007-10-31  Richard Guenther  <rguenther@suse.de>

PR middle-end/33779
* fold-const.c (extract_muldiv_1): Make sure to not introduce
new undefined integer overflow.
(fold_binary): Avoid useless conversion.

* gcc.c-torture/execute/pr33779-1.c: New testcase.
* gcc.c-torture/execute/pr33779-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129796 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr33779-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr33779-2.c [new file with mode: 0644]