Re: [PATCH] Don't emit unnecessary DIEs for file scope vars (PR debug/51410)

2011-12-05 Thread Joseph S. Myers
On Mon, 5 Dec 2011, Jakub Jelinek wrote: > 2011-12-05 Jakub Jelinek > > 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. OK. -- Joseph S. Myers jos...@codes

[PATCH] Don't emit unnecessary DIEs for file scope vars (PR debug/51410)

2011-12-05 Thread Jakub Jelinek
Hi! The VAR_DECL in this testcase is pushed to both external_scope and file_scope, which unfortunately triggers the creation of the local extern I've added for PR39563. That was only intended for function scope, for DWARF file_scope and external_scope are the same thing. Bootstrapped/regtested o