https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71906

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 38923
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38923&action=edit
gcc7-pr71906-wip.patch

Untested WIP patch, that should fix the vara, varb and vare cases at -O0, for
optimized builds the DW_OP_call4 isn't the best thing to do, if the _var*/.var*
argument/variable doesn't live in memory.  I'll try tomorrow adjusting it
during late debug when we have location info for the variable/parameter.

Reply via email to