fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one of the operands...
authorJakub Jelinek <jakub@redhat.com>
Mon, 5 Aug 2002 19:26:27 +0000 (21:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 5 Aug 2002 19:26:27 +0000 (21:26 +0200)
commit1bed5ee327933809acc2bb4a95fdcf8254d7ffa5
treea306730481abb5c80e103e5c05910fd1b4693506
parent5133ad466a642ee5080d8632fc8fca21478362bf
fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one of the operands into MINUS_EXPR if...

* fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
of the operands into MINUS_EXPR if code is PLUS_EXPR.

* gcc.c-torture/execute/20020805-1.c: New test.

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