This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: add an assert to flow.c


On Mon, 2006-12-18 at 17:12 -0800, Ian Lance Taylor wrote:

> > 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 ();
> 
> How could that assert ever fail?  What mode did you get?

CDImode, which has a NULL RTX for that entry in the constant zero table.

Ben



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]