This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/14168] Unneeded DIEs output for imported declarations
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2004 18:16:50 -0000
- Subject: [Bug debug/14168] Unneeded DIEs output for imported declarations
- References: <20040217045409.14168.drow@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dberlin at gcc dot gnu dot org 2004-06-06 18:16 -------
Part of the problem is that we never set TREE_USED on NAMESPACE_DECL, or the imported decls.
I tried the obvious simple fix for the problem in this bug, which was to not emit NAMESPACE_DECL if !
TREE_USED, and not emit imported declarations if !TREE_USED, but netiher work because neither ever
has TREE_USED set.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14168