re PR middle-end/19650 (miscompiling of array acess of (int)(a==2))
authorDale Johannesen <dalej@gcc.gnu.org>
Mon, 31 Jan 2005 18:00:52 +0000 (18:00 +0000)
committerDale Johannesen <dalej@gcc.gnu.org>
Mon, 31 Jan 2005 18:00:52 +0000 (18:00 +0000)
commit3b70b82ab91b33eaa01866cce11853ff60ad780c
treec1d172e58eba26c1ee44c265c85f4c1494fbb719
parentc0736a9ddbfc1651bd3c5602cccade4e9f69f3bd
re PR middle-end/19650 (miscompiling of array acess of (int)(a==2))

2005-01-31  Roger Sayle  <roger@eyesopen.com>
    Dale Johannesen  <dalej@apple.com>

PR middle-end/19650
* fold-const.c (fold_binary_op_with_conditional_arg):
Make types match original operands, before STRIP_NOPS.

From-SVN: r94485
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr19650.C [new file with mode: 0644]