re PR target/78614 (ICE error: invalid rtl sharing found in the insn (verify_rtx_shar...
authorJakub Jelinek <jakub@redhat.com>
Thu, 1 Dec 2016 07:56:49 +0000 (08:56 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 1 Dec 2016 07:56:49 +0000 (08:56 +0100)
commit43d0b501eec49d6d4092fe0e5299aedf1d743124
treee411a39aa09bdf4ea437478d2c363ae134fb0933
parentd9b2d86c74a2153b07fb9d63baf220d385043a9d
re PR target/78614 (ICE error: invalid rtl sharing found in the insn (verify_rtx_sharing) gcc/emit-rtl.c:2743)

PR target/78614
* config/rs6000/rs6000.c (rs6000_frame_related): Call
set_used_flags (pat) before any simplifications.  Clear used flag on
PARALLEL copy.  Don't guard add_reg_note call.  Call
copy_rtx_if_shared on pat before storing it into
REG_FRAME_RELATED_EXPR.

From-SVN: r243099
gcc/ChangeLog
gcc/config/rs6000/rs6000.c