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] Delete EXPR_LOCUS


> The java parts of this are ok.  (IMO they are an obvious consequence
> of the core change but it seems harmless to be explicit.)

Thanks.

> Thanks for doing this, btw.  It is a nice cleanup.

Yes, but on hold for the time being.

> Eric> -/* True if a tree is an expression or statement that can have a
> Eric> -   location.  */
> Eric> -#define CAN_HAVE_LOCATION_P(NODE) (EXPR_P (NODE))
> Eric> -
> Eric> -extern void protected_set_expr_location (tree, location_t);
> Eric> +/* True if a tree is an expression or statement that can have a
> location.  */ Eric> +#define CAN_HAVE_LOCATION_P(NODE) EXPR_P (NODE)
>
> The changes to this macro (both the comment and its definition) look
> unintentional to me.  They are probably harmless but I think it is
> mildly preferable not to make a change like this.

They are intentional (and correct).

-- 
Eric Botcazou


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