]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR debug/39563 (C block scopes have no DW_TAG_lexical_block)
authorJakub Jelinek <jakub@redhat.com>
Mon, 30 Mar 2009 14:35:03 +0000 (16:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 Mar 2009 14:35:03 +0000 (16:35 +0200)
commitb3f27c1577aba48ad3dc74ebb59587f23506e726
treefd2dd5a642f24faf2f5a2b44dda8f15f056e3afc
parent680e8a004a9a664e55fde3239d7c7820290439ac
re PR debug/39563 (C block scopes have no DW_TAG_lexical_block)

PR debug/39563
* c-decl.c (struct c_binding): Add locus field.
(bind): Add locus argument, set locus field from it.
(pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
(push_file_scope, pushtag, pushdecl, pushdecl_top_level,
implicitly_declare, undeclared_variable, lookup_label,
declare_label, c_make_fname_decl, c_builtin_function,
c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
bind callers.

From-SVN: r145293
gcc/ChangeLog
gcc/c-decl.c