aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-19 20:22:09 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-19 20:22:09 +0000
commit4598afdd15d5daf47de645ef6269a5efb467c389 (patch)
tree68b4cad0a94e7d3d451d95aacbef7ae1149a0f4c /gcc
parent66e8df5354f2d9c705d5d8ae461cc76aaf0d1b0c (diff)
downloadgcc-4598afdd15d5daf47de645ef6269a5efb467c389.zip
gcc-4598afdd15d5daf47de645ef6269a5efb467c389.tar.gz
gcc-4598afdd15d5daf47de645ef6269a5efb467c389.tar.bz2
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. From-SVN: r214193
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/emit-rtl.c5
-rw-r--r--gcc/rtl.h2
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6c71a91..403edb9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2014-08-19 David Malcolm <dmalcolm@redhat.com>
+
* basic-block.h (create_basic_block_structure): Strengthen third
param "bb_note" from rtx to rtx_note *.
* rtl.h (emit_note_before): Strengthen return type from rtx to
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index a254f9a..75fb439 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;
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 6d9defe..13494fd 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2414,7 +2414,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 *);