Warnings in emit-rtl.c
Andreas Schwab
schwab@issan.informatik.uni-dortmund.de
Wed Jan 21 09:54:00 GMT 1998
There are two warnings about pointer mismatch in emit-rtl.c, which are due
to putting special things in rtx slots. The actual types cannot be
expressed by the print formats in rtl.def.
1998-01-20 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* emit-rtl.c (gen_label_rtx): Add cast to avoid warning.
(gen_inline_header_rtx): Likewise.
*** egcs-980115/gcc/emit-rtl.c.~1~ Fri Jan 16 18:39:03 1998
--- egcs-980115/gcc/emit-rtl.c Sat Jan 17 09:06:38 1998
*************** gen_label_rtx ()
*** 1452,1458 ****
register rtx label;
label = (output_bytecode
! ? gen_rtx_CODE_LABEL (VOIDmode, 0, bc_get_bytecode_label (),
NULL_RTX, 0, NULL_PTR)
: gen_rtx_CODE_LABEL (VOIDmode, 0, NULL_RTX,
NULL_RTX, label_num++, NULL_PTR));
--- 1452,1458 ----
register rtx label;
label = (output_bytecode
! ? gen_rtx_CODE_LABEL (VOIDmode, 0, (rtx) bc_get_bytecode_label (),
NULL_RTX, 0, NULL_PTR)
: gen_rtx_CODE_LABEL (VOIDmode, 0, NULL_RTX,
NULL_RTX, label_num++, NULL_PTR));
*************** gen_inline_header_rtx (first_insn, first
*** 1497,1503 ****
original_arg_vector,
original_decl_initial,
regno_rtx, regno_flag, regno_align,
! parm_reg_stack_loc);
return header;
}
--- 1497,1503 ----
original_arg_vector,
original_decl_initial,
regno_rtx, regno_flag, regno_align,
! (rtx) parm_reg_stack_loc);
return header;
}
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org
More information about the Gcc
mailing list