This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: PR c/36892: Support __attribute__((deprecated("text string")))
On Fri, May 8, 2009 at 7:17 AM, Manuel López-Ibáñez
> 2009/5/8 H.J. Lu <firstname.lastname@example.org>:
>> - ? ? ?warning (OPT_Wdeprecated_declarations,
>> - ? ? ? ? ? ? ?"%qD is deprecated (declared at %s:%d)",
>> - ? ? ? ? ? ? ?node, xloc.file, xloc.line);
> Why these warnings report the declaration location different than
> other warnings? In other cases we print:
Our patch doesn't change the format.
> warning: something wrong with this
> note: this was declared here
> which I guess allows IDEs to jump to the declaration location.
> The latter can be implemented with:
> ? ? ?warning_at (OPT_Wdeprecated_declarations, "%qD is deprecated", node)
> ? ? ?&& inform (DECL_SOURCE_LOCATION (decl), "%qD declared here", node);
That is independent of our changes.