This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 182/236] get_last_insn_anywhere returns an rtx_insn
- From: David Malcolm <dmalcolm at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Wed, 6 Aug 2014 13:22:41 -0400
- Subject: [PATCH 182/236] get_last_insn_anywhere returns an rtx_insn
- Authentication-results: sourceware.org; auth=none
- References: <1407345815-14551-1-git-send-email-dmalcolm at redhat dot com>
gcc/
* rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
to rtx_insn*.
* emit-rtl.c (get_last_insn_anywhere): Likewise.
---
gcc/emit-rtl.c | 2 +-
gcc/rtl.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 2d0f506..64ae70f 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -3078,7 +3078,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 d6bb252..f982fd6 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2336,7 +2336,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);
--
1.8.5.3