summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-19 20:22:09 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-19 20:22:09 +0000
commite41badc032792a86f375fd96938c649c284cc4d1 (patch)
tree68b4cad0a94e7d3d451d95aacbef7ae1149a0f4c /gcc/emit-rtl.c
parentcef3d8ad8a2bf0c86cb3531966010d60945bd774 (diff)
downloadgcc-e41badc032792a86f375fd96938c649c284cc4d1.tar.gz
emit_jump_table_data returns an rtx_jump_table_data *
2014-08-19 David Malcolm <dmalcolm@redhat.com> * emit-rtl.c (emit_jump_table_data): Strengthen return type from rtx to rtx_jump_table_data *. Also for local. * rtl.h (emit_jump_table_data): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index a254f9a9914..75fb439b5a5 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -4998,10 +4998,11 @@ emit_label (rtx label)
/* Make an insn of code JUMP_TABLE_DATA
and add it to the end of the doubly-linked list. */
-rtx
+rtx_jump_table_data *
emit_jump_table_data (rtx table)
{
- rtx jump_table_data = rtx_alloc (JUMP_TABLE_DATA);
+ rtx_jump_table_data *jump_table_data =
+ as_a <rtx_jump_table_data *> (rtx_alloc (JUMP_TABLE_DATA));
INSN_UID (jump_table_data) = cur_insn_uid++;
PATTERN (jump_table_data) = table;
BLOCK_FOR_INSN (jump_table_data) = NULL;