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: PR 42748


On 02/27/2010 11:57 PM, Mark Mitchell wrote:
Jason Merrill wrote:

This patch makes the mangler set the source location to the location
of the declaration while doing the mangling.

I've also been thinking about moving mangling messages to the decl locus instead, but by changing the warning call (as below) rather than by messing with input_location.

I don't think that's sufficiently general, at least without a bunch of other changes. In the case of the PR, the message comes from code in the ARM back-end that has only a type, not a decl. We'd have to find some way to push the decl down.

Ah. In that case, go ahead with your patch.


Jason


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