From: David Malcolm Date: Tue, 19 Aug 2014 18:44:41 +0000 (+0000) Subject: entry_of_function returns an insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a2e8325e4b35265ea983561eca4a23a13630b07;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d86b78b2bc9..f47a25fd7a4 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 cb07f0bcf0b..2ff75223089 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 2b7c0169522..76e24990ef8 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);