2005-10-07 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2005 18:12:11 +0000 (18:12 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2005 18:12:11 +0000 (18:12 +0000)
commitea43e86069b505537df12739cd0b34ba845ad504
treebfb09f8e50fe34c54fd0b2b25446451c3bd85d21
parentb3bb0d2d363e6ba9875a2fa1dc4979e882e977cb
2005-10-07  Richard Guenther  <rguenther@suse.de>

PR middle-end/24227
* fold-const.c (fold_binary): Fix operand types during folding
of X op (A, Y).  Evaluation order of the side-effects of
X and A are frontend-defined, so ensure we honour that even for
tcc_comparison class operands; eased by removing duplicate code.

* gcc.c-torture/compile/pr24227.c: New testcase.

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