diff options
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 7 | ||||
-rw-r--r-- | gcc/rtl.h | 2 |
3 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2bd3e1a..8c472a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2014-08-19 David Malcolm <dmalcolm@redhat.com> + * rtl.h (gen_label_rtx): Strengthen return type from rtx to + rtx_code_label *. + + * emit-rtl.c (gen_label_rtx): Likewise. + +2014-08-19 David Malcolm <dmalcolm@redhat.com> + * rtl.h (previous_insn): Strengthen return type from rtx to rtx_insn *. (next_insn): Likewise. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 1a31877..decd5d6 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2473,11 +2473,12 @@ set_mem_attrs_for_spill (rtx mem) /* Return a newly created CODE_LABEL rtx with a unique label number. */ -rtx +rtx_code_label * gen_label_rtx (void) { - return gen_rtx_CODE_LABEL (VOIDmode, NULL_RTX, NULL_RTX, - NULL, label_num++, NULL); + return as_a <rtx_code_label *> ( + gen_rtx_CODE_LABEL (VOIDmode, NULL_RTX, NULL_RTX, + NULL, label_num++, NULL)); } /* For procedure integration. */ @@ -2300,7 +2300,7 @@ extern rtx gen_reg_rtx (enum machine_mode); extern rtx gen_rtx_REG_offset (rtx, enum machine_mode, unsigned int, int); extern rtx gen_reg_rtx_offset (rtx, enum machine_mode, int); extern rtx gen_reg_rtx_and_attrs (rtx); -extern rtx gen_label_rtx (void); +extern rtx_code_label *gen_label_rtx (void); extern rtx gen_lowpart_common (enum machine_mode, rtx); /* In cse.c */ |