Re: [PATCH 1/6] diagnostics: Fix macro tracking for ad-hoc locations

2022-11-04 Thread David Malcolm via Gcc-patches
On Fri, 2022-11-04 at 09:44 -0400, Lewis Hyatt via Gcc-patches wrote: > The result of linemap_resolve_location() can be an ad-hoc location, > if that is > what was stored in a relevant macro map.  > maybe_unwind_expanded_macro_loc() > did not previously handle this case, causing it to print the wro

[PATCH 1/6] diagnostics: Fix macro tracking for ad-hoc locations

2022-11-04 Thread Lewis Hyatt via Gcc-patches
The result of linemap_resolve_location() can be an ad-hoc location, if that is what was stored in a relevant macro map. maybe_unwind_expanded_macro_loc() did not previously handle this case, causing it to print the wrong tracking information for an example such as the new testcase macro-trace-1.c.