summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-22 17:40:37 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-22 17:40:37 +0000
commit724ea712365d7da3c454c8ab7ee557752ff7d1f3 (patch)
tree0803afaa84c77bde73aa2d88d39c8c1d727a9b2c /gcc/toplev.c
parent8f7040d4948c5752692f65b56e75b2fc66673d6a (diff)
downloadgcc-724ea712365d7da3c454c8ab7ee557752ff7d1f3.tar.gz
PR debug/21828
* toplev.c (check_global_declarations): Do not mark undefined variables as DECL_IGNORED_P. * varasm.c (first_global_object_name): GTY it. (weak_global_object_name): Likewise. (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating a string to go into {weak,first}_global_object_name. PR debug/21828 * gcc.dg/debug/dwarf2/dwarf-uninit.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102287 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 5ad62dd6ecf..b5ee33b33b8 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -802,13 +802,6 @@ check_global_declarations (tree *vec, int len)
{
decl = vec[i];
- /* Do not emit debug information about variables that are in
- static storage, but not defined. */
- if (TREE_CODE (decl) == VAR_DECL
- && TREE_STATIC (decl)
- && !TREE_ASM_WRITTEN (decl))
- DECL_IGNORED_P (decl) = 1;
-
/* Warn about any function
declared static but not defined.
We don't warn about variables,