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 3/7] Emit macro expansion related diagnostics


Jason Merrill <jason@redhat.com> writes:

> I was thinking that you could walk the macro expansions to see if the
> two locations have an expansion in common, and if so compare the
> indices. I guess you could do this only if the locations have the same
> expansion location but are not themselves equal.

OK.  I thought about this but wasn't sure if it would be enough.  I'll
try this then.

> If comparing the expansion locations is enough for how this function
> is used that's fine, but the name should be adjusted to be more
> specific.

OK, let's leave this as a fallback if the above proves to be not be
enough, if you don't mind.

Thanks.

-- 
		Dodji


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