On Tue, Nov 13, 2018 at 07:37:27PM +0100, Richard Biener wrote: > I'd look at doing the instrumentation after var-tracking has run - that is > what computes the locations in the end. That means instrumenting on late RTL > after register allocation (and eventually with branch range restrictions in > place). Basically you'd instrument at the same time as generating debug info.
Ok that would be a full rewrite. I'll check if it's really a problem first. I would prefer to stay on the GIMPLE level. -Andi