This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: add an assert to flow.c
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 19 Dec 2006 09:50:55 +1100
- Subject: PATCH: add an assert to flow.c
This assertion prevents us from wandering to emit_move_insn with a null
RTX. Okay for the trunk?
2006-12-19 Ben Elliston <bje@au.ibm.com>
* flow.c (initialize_uninitialized_subregs): Ensure that the rtx
zero constant for the mode of param.retval is non-NULL.
Index: flow.c
===================================================================
--- flow.c (revision 120017)
+++ flow.c (working copy)
@@ -1557,6 +1557,7 @@ initialize_uninitialized_subregs (void)
if (param.retval != NULL_RTX)
{
start_sequence ();
+ gcc_assert (CONST0_RTX (GET_MODE (param.retval)) !=
NULL_RTX);
emit_move_insn (param.retval,
CONST0_RTX (GET_MODE (param.retval)));
insn = get_insns ();