From 8a2e8325e4b35265ea983561eca4a23a13630b07 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 19 Aug 2014 18:44:41 +0000 Subject: [PATCH] entry_of_function returns an insn 2014-08-19 David Malcolm * rtl.h (entry_of_function): Strengthen return type from rtx to rtx_insn *. * cfgrtl.c (entry_of_function): Likewise. From-SVN: r214182 --- gcc/ChangeLog | 6 ++++++ gcc/cfgrtl.c | 2 +- gcc/rtl.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d86b78b2bc9a..f47a25fd7a41 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-19 David Malcolm + + * rtl.h (entry_of_function): Strengthen return type from rtx to + rtx_insn *. + * cfgrtl.c (entry_of_function): Likewise. + 2014-08-19 David Malcolm * emit-rtl.h (get_insns): Strengthen return type from rtx to diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index cb07f0bcf0b3..2ff752230894 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -498,7 +498,7 @@ make_pass_free_cfg (gcc::context *ctxt) } /* Return RTX to emit after when we want to emit code on the entry of function. */ -rtx +rtx_insn * entry_of_function (void) { return (n_basic_blocks_for_fn (cfun) > NUM_FIXED_BLOCKS ? diff --git a/gcc/rtl.h b/gcc/rtl.h index 2b7c01695223..76e24990ef8b 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3088,7 +3088,7 @@ extern void add_insn_after (rtx, rtx, basic_block); extern void remove_insn (rtx); extern rtx emit (rtx); extern void delete_insn (rtx); -extern rtx entry_of_function (void); +extern rtx_insn *entry_of_function (void); extern void emit_insn_at_entry (rtx); extern void delete_insn_chain (rtx, rtx, bool); extern rtx unlink_insn_chain (rtx, rtx); -- 2.47.3