http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48466
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-07 18:30:39 UTC --- Author: jakub Date: Thu Apr 7 18:30:36 2011 New Revision: 172118 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172118 Log: Backported from mainline 2011-04-06 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/guality/pr36977.c branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/guality/pr48466.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/dwarf2out.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog