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


On Thu, 23 Apr 2009, Eric Botcazou wrote:

> Hi,
> 
> this patch removes EXPR_LOCUS and all traces of indirection from the source 
> location business.  This means changing the signature of the 'H' specifier 
> from location_t* to location_t, hence a few warnings during stage #1.

If you're changing every call using %H (or many such calls), making them 
use warning_at, error_at etc. (with the location as an explicit prototyped 
argument) might be better.  I think we'd like eventually for all calls to 
diagnostic functions to pass an explicit location argument (and maybe 
eventually for error_at to be renamed to error etc.).

-- 
Joseph S. Myers
joseph@codesourcery.com


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