[Bug debug/49032] -gstabs generates reference to deleted static variable
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 23 18:50:00 GMT 2011
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
More information about the Gcc-bugs
mailing list