[PATCH] configuration support for rtl flag checking

Zack Weinberg zack@codesourcery.com
Wed May 8 13:27:00 GMT 2002


On Wed, May 08, 2002 at 09:58:33AM -0700, Janis Johnson wrote:
> On Tue, May 07, 2002 at 05:45:20PM -0700, Zack Weinberg wrote:
> > 
> > Well, I'd still like to see the name of the access macro:
> > 
> >  .../crtstuff.c:263: RTL flag check: RTX_UNCHANGING_P used with
> >  unexpected rtx code `reg' in get_subtarget, at expr.c:3615
> > 
> > Imagine the problem's buried in one of those monstrous conditionals we
> > have; finding it is going to be easier the more information we get in
> > the error message.
> 
> OK, it would be good to have the name of the macro in the message.  I'm
> not very good at preprocessor magic, so this is what I've come up with;
> is there a better way to do this?

...
> #define CONST_OR_PURE_CALL_P(RTX)	\
>   (RTL_FLAG_CHECK3("CONST_OR_PURE_CALL_P", (RTX), CALL_INSN, NOTE, \
> 		   EXPR_LIST)->unchanging)

That's the only way I can think of, unfortunately.

zw



More information about the Gcc-patches mailing list