re PR debug/48466 (Wrong variable locations at -O0 on i686)
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Apr 2011 11:49:59 +0000 (13:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Apr 2011 11:49:59 +0000 (13:49 +0200)
commitfe84628425a9b784688e5e7fbbd081acd6261e90
tree48e1b21d04a80c8e8bbbed2129f5f2722bd854bc
parentacce4e77382b198a70f1044724bda19b01997657
re PR debug/48466 (Wrong variable locations at -O0 on i686)

PR debug/48466
* dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
as base_reg whatever register reg has been eliminated to, instead
of hardcoding STACK_POINTER_REGNUM.

* gcc.dg/guality/pr36977.c: New test.
* gcc.dg/guality/pr48466.c: New test.

From-SVN: r172039
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr36977.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/guality/pr48466.c [new file with mode: 0644]