OSDN Git Service

Fix for PR debug/43325
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Apr 2010 18:54:30 +0000 (18:54 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Apr 2010 18:54:30 +0000 (18:54 +0000)
commit9be1353919ef0b9c7319e44fb1e80aad908b3fea
treeb6732222ccf4fafc095cadf5cc496e8153d3b0ab
parent10aa67fa1ecf734c95a808ddce16721944867a06
Fix for PR debug/43325

gcc/ChangeLog:
PR debug/43325
* dwarf2out.c (gen_variable_die): Allow debug info for variable
re-declaration when it happens in a function.

gcc/testsuite/ChangeLog:
PR debug/43325
* c-c++-common/dwarf2/redeclaration-1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157928 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/dwarf2/redeclaration-1.C [new file with mode: 0644]