diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2bd3e1a294e..8c472a8277a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-08-19 David Malcolm + + * 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 * rtl.h (previous_insn): Strengthen return type from rtx to diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 1a31877ab43..decd5d6afa9 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 ( + gen_rtx_CODE_LABEL (VOIDmode, NULL_RTX, NULL_RTX, + NULL, label_num++, NULL)); } /* For procedure integration. */ diff --git a/gcc/rtl.h b/gcc/rtl.h index 9a2884abbb3..2b7c0169522 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -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 */