diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-06-02 10:07:15 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-06-02 10:07:15 +0200 |
commit | 74b4885d944854e7a8c032cb169a5c6f4d6e4058 (patch) | |
tree | 64697b0e19af803724a7e99715567fa79b97793d /gcc/loop-doloop.c | |
parent | aad16012aa3bd5fe1c019bac5dc1c71537c5431c (diff) | |
download | gcc-74b4885d944854e7a8c032cb169a5c6f4d6e4058.zip gcc-74b4885d944854e7a8c032cb169a5c6f4d6e4058.tar.gz gcc-74b4885d944854e7a8c032cb169a5c6f4d6e4058.tar.bz2 |
re PR rtl-optimization/80903 (ICE: internal consistency failure (error: invalid rtl sharing found in the insn))
PR rtl-optimization/80903
* loop-doloop.c (add_test): Unshare sequence.
* gcc.dg/pr80903.c: New test.
From-SVN: r248815
Diffstat (limited to 'gcc/loop-doloop.c')
-rw-r--r-- | gcc/loop-doloop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index 3483000..c018e2c 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -367,6 +367,7 @@ add_test (rtx cond, edge *e, basic_block dest) } seq = get_insns (); + unshare_all_rtl_in_chain (seq); end_sequence (); /* There always is at least the jump insn in the sequence. */ |