* fwprop.c (forward_propagate_and_simplify): Only attach a
commit93d89886b5b6304307cadbc71dfed4ccea4568a5
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Sep 2010 14:18:31 +0000 (13 14:18 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Sep 2010 14:18:31 +0000 (13 14:18 +0000)
tree4c9cd35e7dd224f5d801377b48766612c1f477f5
parent2234e62819250039cd49559b6153ae2a8c163052
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164245 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fwprop.c
gcc/gcse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/memtrap.adb [new file with mode: 0644]