re PR target/78614 (ICE error: invalid rtl sharing found in the insn (verify_rtx_shar...
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Dec 2016 15:42:04 +0000 (16:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 2 Dec 2016 15:42:04 +0000 (16:42 +0100)
commiteb61d07edaf05f36151bfe4382777eaa79bce4d9
tree26d9c8c50957315a60c37f181ee12d0fb67a19fb
parent8261e476cb64cee8891fa676202d1f42decdcd14
re PR target/78614 (ICE error: invalid rtl sharing found in the insn (verify_rtx_sharing) gcc/emit-rtl.c:2743)

PR target/78614
* rtl.c (copy_rtx): Don't clear used flag here.
(shallow_copy_rtx_stat): Clear used flag here unless code the rtx
is shareable.
* simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
'E' in format, copy all vectors.
* emit-rtl.c (copy_insn_1): Don't clear used flag here.
* valtrack.c (cleanup_auto_inc_dec): Likewise.
* config/rs6000/rs6000.c (rs6000_frame_related): Likewise.

From-SVN: r243194
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/emit-rtl.c
gcc/rtl.c
gcc/valtrack.c