On 05/23/2012 06:30 AM, Jason Merrill wrote:
On 05/22/2012 05:18 PM, Paolo Carlini wrote:
Uhhm, I have an "out of the blue" idea, so please excuse me if for some
"obvious" reason doesn't make sense: don't we have a global variable
saying "where we are" in the compiler pipeline?

I'm not sure, but the question led me to thinking about only asserting if input_location != UNKNOWN_LOCATION. Would that work?
Ah, that would be a nice "implementation" of my vague idea! Thus, what I'm going to test, in warning_at & co is something like:

    gcc_assert (input_location == UNKNOWN_LOCATION
                           || location != UNKNOWN_LOCATION);

Paolo.





Reply via email to