public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/14168] Unneeded DIEs output for imported declarations
       [not found] <bug-14168-4@http.gcc.gnu.org/bugzilla/>
@ 2024-01-23 15:48 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-23 15:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14168

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
   Last reconfirmed|2005-11-02 02:12:19         |2024-1-23

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think the debug reflects the source which is what it should first and
foremost do so there is no bug.

-feliminate-unused-debug-{symbols,types} which are enabled by default should
maybe eliminate everything, but the using declaration,
DW_TAG_imported_declaration isn't handled explicitly in prune_unused_types_walk
which means we keep it (and referenced things and also its context DIE, the
namespace.

The question is whether we should handle DW_TAG_imported_declaration based
on the imported DIE (typedef or function) or on its own merit.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug debug/14168] Unneeded DIEs output for imported declarations
  2004-02-17  4:54 [Bug debug/14168] New: " drow at gcc dot gnu dot org
  2004-02-17  5:06 ` [Bug debug/14168] " pinskia at gcc dot gnu dot org
@ 2004-06-06 18:16 ` dberlin at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2004-06-06 18:16 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug debug/14168] Unneeded DIEs output for imported declarations
  2004-02-17  4:54 [Bug debug/14168] New: " drow at gcc dot gnu dot org
@ 2004-02-17  5:06 ` pinskia at gcc dot gnu dot org
  2004-06-06 18:16 ` dberlin at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-17  5:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-17 05:06 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-17 05:06:23
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14168


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-23 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-14168-4@http.gcc.gnu.org/bugzilla/>
2024-01-23 15:48 ` [Bug debug/14168] Unneeded DIEs output for imported declarations rguenth at gcc dot gnu.org
2004-02-17  4:54 [Bug debug/14168] New: " drow at gcc dot gnu dot org
2004-02-17  5:06 ` [Bug debug/14168] " pinskia at gcc dot gnu dot org
2004-06-06 18:16 ` dberlin at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).