This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49032] -gstabs generates reference to deleted static variable
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 May 2011 18:45:40 +0000
- Subject: [Bug debug/49032] -gstabs generates reference to deleted static variable
- Auto-submitted: auto-generated
- References: <bug-49032-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49032
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-23 18:12:36 UTC ---
Author: jakub
Date: Mon May 23 18:12:34 2011
New Revision: 174084
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174084
Log:
PR debug/49032
* dbxout.c: Include cgraph.h.
(dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
and without value expr, return NULL if no varpool node exists for
it or if it is not needed.
* Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
* gcc.dg/debug/pr49032.c: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/debug/pr49032.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/Makefile.in
branches/gcc-4_6-branch/gcc/dbxout.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog