re PR middle-end/24227 (ICE in compare_values, at tree-vrp.c:415)
authorRichard Guenther <rguenther@suse.de>
Fri, 7 Oct 2005 18:12:11 +0000 (18:12 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 7 Oct 2005 18:12:11 +0000 (18:12 +0000)
commit4c17e288380c5b3ff5350fbe83357e077b9213d5
treebfb09f8e50fe34c54fd0b2b25446451c3bd85d21
parent002a9071e6fe429c55e02c5b678b4e47282d05ca
re PR middle-end/24227 (ICE in compare_values, at tree-vrp.c:415)

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.

From-SVN: r105096
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr24227.c [new file with mode: 0644]