diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-07-22 17:40:37 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-07-22 17:40:37 +0000 |
commit | 9881e3e5e8b19559f67332ea3f027c315933aed0 (patch) | |
tree | 0803afaa84c77bde73aa2d88d39c8c1d727a9b2c /gcc/toplev.c | |
parent | 1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018 (diff) | |
download | gcc-9881e3e5e8b19559f67332ea3f027c315933aed0.zip gcc-9881e3e5e8b19559f67332ea3f027c315933aed0.tar.gz gcc-9881e3e5e8b19559f67332ea3f027c315933aed0.tar.bz2 |
re PR debug/21828 (debug info omitted for uninitialized variables)
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.
From-SVN: r102287
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 5ad62dd..b5ee33b 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, |