From: David Malcolm Date: Tue, 26 Aug 2014 19:25:31 +0000 (+0000) Subject: get_last_insn_anywhere returns an rtx_insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db76cf1e63450264df9a4b0e7e9ccdc85ce70afa;p=gcc.git get_last_insn_anywhere returns an rtx_insn gcc/ 2014-08-26 David Malcolm * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx to rtx_insn*. * emit-rtl.c (get_last_insn_anywhere): Likewise. From-SVN: r214538 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a754f707c3f..ef9dd0dca7d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-26 David Malcolm + + * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx + to rtx_insn*. + * emit-rtl.c (get_last_insn_anywhere): Likewise. + 2014-08-26 David Malcolm * function.h (struct sequence_stack): Strengthen fields "first" diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index fa904222fd0..51f799c9d20 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3091,7 +3091,7 @@ make_safe_from (rtx x, rtx other) /* Return the last insn emitted, even if it is in a sequence now pushed. */ -rtx +rtx_insn * get_last_insn_anywhere (void) { struct sequence_stack *stack; diff --git a/gcc/rtl.h b/gcc/rtl.h index f5b2ea1fffe..588fe3b0109 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2358,7 +2358,7 @@ extern rtx convert_memory_address_addr_space (enum machine_mode, rtx, #define convert_memory_address(to_mode,x) \ convert_memory_address_addr_space ((to_mode), (x), ADDR_SPACE_GENERIC) extern const char *get_insn_name (int); -extern rtx get_last_insn_anywhere (void); +extern rtx_insn *get_last_insn_anywhere (void); extern rtx get_first_nonnote_insn (void); extern rtx get_last_nonnote_insn (void); extern void start_sequence (void);