diff options
author | Richard Henderson <rth@redhat.com> | 2005-09-08 17:47:05 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-09-08 17:47:05 -0700 |
commit | db5f8b93fe442457a30fa5289ae9b336f2cb1eda (patch) | |
tree | 8b288d10d2c8cf110317fdcfab54fc70ab7a2ec6 /gcc/cp/decl2.c | |
parent | 41306174c8b7e4680a11d6faf4a03261bbcb243b (diff) | |
download | gcc-db5f8b93fe442457a30fa5289ae9b336f2cb1eda.zip gcc-db5f8b93fe442457a30fa5289ae9b336f2cb1eda.tar.gz gcc-db5f8b93fe442457a30fa5289ae9b336f2cb1eda.tar.bz2 |
re PR debug/23190 (debug info omitted for uninitialized variables (stabs))
PR debug/23190
* toplev.c (wrapup_global_declaration_1): Split out ...
(wrapup_global_declaration_2): ... from ...
(wrapup_global_declarations): ... here. Return bool.
(check_global_declaration_1): Split out ...
(check_global_declarations): from here.
(emit_debug_global_declarations): New.
* toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
check_global_declaration_1, emit_debug_global_declarations): Declare.
* c-decl.c (c_write_global_declarations_1): Don't create a vector
of decls. Call wrapup_global_declaration_1,
wrapup_global_declaration_2, check_global_declaration_1 directly.
(c_write_global_declarations_2): New.
(ext_block): New.
(c_write_global_declarations): Call c_write_global_declarations_2.
* langhooks.c (write_global_declarations): Call
emit_debug_global_declarations.
* cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
remove decls that have DECL_RTL_SET_P.
* passes.c (rest_of_decl_compilation): Invoke
cgraph_varpool_finalize_decl for all but functions.
cp/
* decl.c (wrapup_globals_for_namespace): Call
emit_debug_global_declarations.
* decl2.c (cp_finish_file): Likewise.
From-SVN: r104065
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index a6e82f0..afb747f 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -3106,8 +3106,12 @@ cp_finish_file (void) etc., and emit debugging information. */ walk_namespaces (wrapup_globals_for_namespace, /*data=*/&reconsider); if (VEC_length (tree, pending_statics) != 0) - check_global_declarations (VEC_address (tree, pending_statics), - VEC_length (tree, pending_statics)); + { + check_global_declarations (VEC_address (tree, pending_statics), + VEC_length (tree, pending_statics)); + emit_debug_global_declarations (VEC_address (tree, pending_statics), + VEC_length (tree, pending_statics)); + } /* Generate hidden aliases for Java. */ build_java_method_aliases (); |