On Sun, Jun 16, 2013 at 12:51:25PM +0200, Eric Botcazou wrote:
> the subject is slightly misleading since it's actually about structures with
> integral modes which are passed by reference on some platforms, e.g. SPARC or
> PowerPC 32-bit. There are 3 issues:
>
> 1. At -O0, the parameters of this kind are not homed on the stack, which
> means that backtraces can display <optimized out> for them.
>
> 2. Since the fix for PR debug/48163, the locations emitted at -O1 and above
> for them are totally bogus (there is a bogus additional dereference).
>
> 3. The location lists are quickly wrong for them because they fail to take
> into account that the register parameter is clobbered.
>
> The attached patch addresses 1. and 2. fully and 3. partially (for now). It
> has been tested on x86-64 and PowerPC/Linux. OK for the mainline?
This really should come with testcases (e.g. guality ones).
Jakub