re PR debug/21828 (debug info omitted for uninitialized variables)
authorMark Mitchell <mark@codesourcery.com>
Fri, 22 Jul 2005 17:40:37 +0000 (17:40 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 22 Jul 2005 17:40:37 +0000 (17:40 +0000)
commit9881e3e5e8b19559f67332ea3f027c315933aed0
tree0803afaa84c77bde73aa2d88d39c8c1d727a9b2c
parent1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018
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
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-uninit.c [new file with mode: 0644]
gcc/toplev.c
gcc/varasm.c