Message ID | 1407345815-14551-32-git-send-email-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show |
On 08/06/14 11:20, David Malcolm wrote: > gcc/ > * 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): Likwise. OK. jeff
On Wed, 2014-08-13 at 07:45 -0600, Jeff Law wrote: > On 08/06/14 11:20, David Malcolm wrote: > > gcc/ > > * 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): Likwise. > OK. Thanks. Committed to trunk as r214193, having bootstrapped®rtested on x86_64-unknown-linux-gnu (Fedora 20) albeit in combination with patches 30-39, and verified that it builds standalone.
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index afbb6a0..2614937 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -4985,10 +4985,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; diff --git a/gcc/rtl.h b/gcc/rtl.h index cca0e20..ed65d1e 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2392,7 +2392,7 @@ extern rtx emit_debug_insn (rtx); extern rtx emit_jump_insn (rtx); extern rtx emit_call_insn (rtx); extern rtx emit_label (rtx); -extern rtx emit_jump_table_data (rtx); +extern rtx_jump_table_data *emit_jump_table_data (rtx); extern rtx emit_barrier (void); extern rtx_note *emit_note (enum insn_note); extern rtx_note *emit_note_copy (rtx_note *);