diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-19 18:44:41 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-19 18:44:41 +0000 |
commit | 8a2e8325e4b35265ea983561eca4a23a13630b07 (patch) | |
tree | da230e132571622f6cfca9d50e37fa6bb9176344 | |
parent | 27093ee4fc85ceb883cefc4f572ce4d4a9b68131 (diff) | |
download | gcc-8a2e8325e4b35265ea983561eca4a23a13630b07.zip gcc-8a2e8325e4b35265ea983561eca4a23a13630b07.tar.gz gcc-8a2e8325e4b35265ea983561eca4a23a13630b07.tar.bz2 |
entry_of_function returns an insn
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* rtl.h (entry_of_function): Strengthen return type from rtx to
rtx_insn *.
* cfgrtl.c (entry_of_function): Likewise.
From-SVN: r214182
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cfgrtl.c | 2 | ||||
-rw-r--r-- | gcc/rtl.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d86b78b..f47a25f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2014-08-19 David Malcolm <dmalcolm@redhat.com> + * rtl.h (entry_of_function): Strengthen return type from rtx to + rtx_insn *. + * cfgrtl.c (entry_of_function): Likewise. + +2014-08-19 David Malcolm <dmalcolm@redhat.com> + * emit-rtl.h (get_insns): Strengthen return type from rtx to rtx_insn *, adding a checked cast for now. (get_last_insn): Likewise. diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index cb07f0b..2ff7522 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 ? @@ -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); |