fwprop.c (forward_propagate_and_simplify): Only attach a REG_EQUAL note to an insn...
authorOlivier Hainque <hainque@adacore.com>
Mon, 13 Sep 2010 14:18:31 +0000 (14:18 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 13 Sep 2010 14:18:31 +0000 (14:18 +0000)
commit2f434b97f176acb60b345d2d135a0e15fcb5c5b7
tree4c9cd35e7dd224f5d801377b48766612c1f477f5
parent654a61fb34739e051618c5af90e8bfa77b84a8d2
fwprop.c (forward_propagate_and_simplify): Only attach a REG_EQUAL note to an insn if the destination is a register.

        * fwprop.c (forward_propagate_and_simplify): Only attach a
        REG_EQUAL note to an insn if the destination is a register.
        * gcse.c (try_replace_reg): Likewise.

        testsuite/
        * gnat.dg/memtrap.adb: New test.

From-SVN: r164245
gcc/ChangeLog
gcc/fwprop.c
gcc/gcse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/memtrap.adb [new file with mode: 0644]