From 6bb9bf637ae44ae9d07012fac08e35a446d11ea4 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 25 Aug 2014 20:40:19 +0000 Subject: [PATCH] unshare_all_rtl_again takes an rtx_insn * gcc/ * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx to rtx_insn *. * emit-rtl.c (unshare_all_rtl_1): Likewise. (unshare_all_rtl_again): Likewise, also for local "p". From-SVN: r214475 --- gcc/ChangeLog | 8 ++++++++ gcc/emit-rtl.c | 6 +++--- gcc/rtl.h | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1a4617c631a..f5a0d8b6dec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-08-25 David Malcolm + + * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx + to rtx_insn *. + + * emit-rtl.c (unshare_all_rtl_1): Likewise. + (unshare_all_rtl_again): Likewise, also for local "p". + 2014-08-25 David Malcolm * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index aaf9c7d0858..84594d892b6 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2529,7 +2529,7 @@ set_new_first_and_last_insn (rtx first, rtx last) structure. This routine should only be called once. */ static void -unshare_all_rtl_1 (rtx insn) +unshare_all_rtl_1 (rtx_insn *insn) { /* Unshare just about everything else. */ unshare_all_rtl_in_chain (insn); @@ -2549,9 +2549,9 @@ unshare_all_rtl_1 (rtx insn) should be done sparingly. */ void -unshare_all_rtl_again (rtx insn) +unshare_all_rtl_again (rtx_insn *insn) { - rtx p; + rtx_insn *p; tree decl; for (p = insn; p; p = NEXT_INSN (p)) diff --git a/gcc/rtl.h b/gcc/rtl.h index 5db16c84747..d13c50802a2 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3087,7 +3087,7 @@ extern void push_topmost_sequence (void); extern void pop_topmost_sequence (void); extern void set_new_first_and_last_insn (rtx, rtx); extern unsigned int unshare_all_rtl (void); -extern void unshare_all_rtl_again (rtx); +extern void unshare_all_rtl_again (rtx_insn *); extern void unshare_all_rtl_in_chain (rtx); extern void verify_rtl_sharing (void); extern void add_insn (rtx); -- 2.30.2