This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/51410] [4.5/4.6 Regression] duplicate variable DIE
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Dec 2011 13:39:38 +0000
- Subject: [Bug debug/51410] [4.5/4.6 Regression] duplicate variable DIE
- Auto-submitted: auto-generated
- References: <bug-51410-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51410
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-08 13:39:38 UTC ---
Author: jakub
Date: Thu Dec 8 13:39:34 2011
New Revision: 182114
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182114
Log:
Backport from mainline
2011-12-05 Jakub Jelinek <jakub@redhat.com>
PR debug/51410
* c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
for debug info if scope is file_scope.
* gcc.dg/debug/dwarf2/pr51410.c: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/debug/dwarf2/pr51410.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/c-decl.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog