aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-02-28 22:34:23 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2009-02-28 21:34:23 +0000
commit261401301f185163dbca9103c8d62fe8f3cd84d6 (patch)
treea1b57e26048b1bb2efd2b164a77163315bcc41ca /gcc/varpool.c
parent593b6421cddcc4adb3c4d905248430ffe485330a (diff)
downloadgcc-261401301f185163dbca9103c8d62fe8f3cd84d6.zip
gcc-261401301f185163dbca9103c8d62fe8f3cd84d6.tar.gz
gcc-261401301f185163dbca9103c8d62fe8f3cd84d6.tar.bz2
re PR debug/39267 (gdb testsuite regressions)
PR debug/39267 * cgraph.h (varpool_output_debug_info): Remove. * cgraphunit.c (varpool_output_debug_info): Remove. * dwarf2out.c (deferred_locations_struct): New struct (deferred_locations): New type. (deferred_locations_list): New static var. (deffer_location): New function. (gen_variable_die): Use it. (decls_for_scope): Output info on local static vars. (dwarf2out_finish): Process deferred locations. * varpool.c (varpool_output_debug_info): Remove. From-SVN: r144496
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 8b9821a..8c1259b 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -456,29 +456,6 @@ varpool_empty_needed_queue (void)
varpool_last_needed_node = NULL;
}
-/* Output all variables enqueued to be assembled. */
-void
-varpool_output_debug_info (void)
-{
- timevar_push (TV_SYMOUT);
- if (errorcount == 0 && sorrycount == 0)
- while (varpool_assembled_nodes_queue)
- {
- struct varpool_node *node = varpool_assembled_nodes_queue;
-
- /* Local static variables are never seen by check_global_declarations
- so we need to output debug info by hand. */
- if (DECL_CONTEXT (node->decl)
- && (TREE_CODE (DECL_CONTEXT (node->decl)) == BLOCK
- || TREE_CODE (DECL_CONTEXT (node->decl)) == FUNCTION_DECL)
- && errorcount == 0 && sorrycount == 0)
- (*debug_hooks->global_decl) (node->decl);
- varpool_assembled_nodes_queue = node->next_needed;
- node->next_needed = 0;
- }
- timevar_pop (TV_SYMOUT);
-}
-
/* Create a new global variable of type TYPE. */
tree
add_new_static_var (tree type)