This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Delete EXPR_LOCUS
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Apr 2009 22:18:00 +0000 (UTC)
- Subject: Re: [PATCH] Delete EXPR_LOCUS
- References: <200904232221.17873.ebotcazou@adacore.com>
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