public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++
@ 2012-04-25 15:20 jason at gcc dot gnu.org
  2012-04-26  9:09 ` [Bug debug/53118] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-04-25 15:20 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53118
           Summary: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is
                    broken for C++
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: wrong-debug
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jason@gcc.gnu.org


As noted in http://gcc.gnu.org/ml/gcc-help/2010-09/msg00081.html ,
-feliminate-dwarf2-dups has been broken for C++ ever since GCC 4.0; the front
end now tokenizes the entire input before doing any parsing, so the calls to
dwarf2out_{start,end}_source_file are all clustered at the beginning rather
than properly wrapping the contents of headers.

Testcase from that message:

------ source file bar.c: --------
#include "foo.h"
#include "bar.h"

struct Foo myfoo;
struct Bar mybar;
----------------------------------

------ header file foo.h: --------
struct Foo {
    double d_foo;
    int i_foo;
};
----------------------------------

------ header file bar.h: --------
struct Bar {
    double d_bar;
    int i_bar;
    char c_bar;
};
----------------------------------


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

* [Bug debug/53118] [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
@ 2012-04-26  9:09 ` rguenth at gcc dot gnu.org
  2012-04-26 14:25 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-26  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.4


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

* [Bug debug/53118] [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
  2012-04-26  9:09 ` [Bug debug/53118] " rguenth at gcc dot gnu.org
@ 2012-04-26 14:25 ` rguenth at gcc dot gnu.org
  2012-07-02 12:15 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-26 14:25 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug debug/53118] [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
  2012-04-26  9:09 ` [Bug debug/53118] " rguenth at gcc dot gnu.org
  2012-04-26 14:25 ` rguenth at gcc dot gnu.org
@ 2012-07-02 12:15 ` rguenth at gcc dot gnu.org
  2013-04-12 15:17 ` [Bug debug/53118] [4.7 " jakub at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 12:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.4                       |4.6.4

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 12:15:03 UTC ---
The 4.5 branch is being closed, adjusting target milestone.


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

* [Bug debug/53118] [4.7 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-07-02 12:15 ` rguenth at gcc dot gnu.org
@ 2013-04-12 15:17 ` jakub at gcc dot gnu.org
  2014-06-12 13:07 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-12 15:17 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.4                       |4.7.4

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 15:16:31 UTC ---
GCC 4.6.4 has been released and the branch has been closed.


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

* [Bug debug/53118] [4.7 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2013-04-12 15:17 ` [Bug debug/53118] [4.7 " jakub at gcc dot gnu.org
@ 2014-06-12 13:07 ` rguenth at gcc dot gnu.org
  2014-06-12 13:39 ` [Bug debug/53118] [4.8/4.9/4.10 " jason at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.7.4                       |4.8.0
      Known to fail|                            |4.7.4

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Assuming fixed in 4.8.0.


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

* [Bug debug/53118] [4.8/4.9/4.10 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-06-12 13:07 ` rguenth at gcc dot gnu.org
@ 2014-06-12 13:39 ` jason at gcc dot gnu.org
  2015-02-26 16:54 ` [Bug debug/53118] [4.8/4.9/5 " aldyh at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-12 13:39 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2014-06-12
         Resolution|FIXED                       |---
            Summary|[4.7 regression]            |[4.8/4.9/4.10 regression]
                   |-feliminate-dwarf2-dups is  |-feliminate-dwarf2-dups is
                   |broken for C++              |broken for C++
     Ever confirmed|0                           |1

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Not fixed.


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

* [Bug debug/53118] [4.8/4.9/5 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2014-06-12 13:39 ` [Bug debug/53118] [4.8/4.9/4.10 " jason at gcc dot gnu.org
@ 2015-02-26 16:54 ` aldyh at gcc dot gnu.org
  2015-03-02 21:05 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: aldyh at gcc dot gnu.org @ 2015-02-26 16:54 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4
                 CC|                            |aldyh at gcc dot gnu.org

--- Comment #5 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
-feliminate-dwarf2-dups has been disabled for C++ (see PR46102).  However, as
noted by Ian in the thread in #c1, there are better ways of removing duplicates
in dwarf4.  Consequently, I don't believe this should be in the "serious
regression" category.  Downgrading.


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

* [Bug debug/53118] [4.8/4.9/5 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2015-02-26 16:54 ` [Bug debug/53118] [4.8/4.9/5 " aldyh at gcc dot gnu.org
@ 2015-03-02 21:05 ` jason at gcc dot gnu.org
  2015-06-22 14:21 ` [Bug debug/53118] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2015-03-02 21:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #5)
> -feliminate-dwarf2-dups has been disabled for C++ (see PR46102).  However,
> as noted by Ian in the thread in #c1, there are better ways of removing
> duplicates in dwarf4.

FWIW I don't know if I agree that .debug_types is "better"; there's currently
no way to refer to children of the type, so we end up creating "skeleton" DIEs
in the main CU anyway.


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

* [Bug debug/53118] [4.8/4.9/5/6 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2015-03-02 21:05 ` jason at gcc dot gnu.org
@ 2015-06-22 14:21 ` rguenth at gcc dot gnu.org
  2021-05-14  9:46 ` [Bug debug/53118] [9/10/11/12 " jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-22 14:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.0                       |6.0


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

* [Bug debug/53118] [9/10/11/12 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2015-06-22 14:21 ` [Bug debug/53118] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
@ 2021-05-14  9:46 ` jakub at gcc dot gnu.org
  2021-06-01  8:05 ` rguenth at gcc dot gnu.org
  2021-08-25 19:52 ` pinskia at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14  9:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|8.5                         |9.4

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.

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

* [Bug debug/53118] [9/10/11/12 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2021-05-14  9:46 ` [Bug debug/53118] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01  8:05 ` rguenth at gcc dot gnu.org
  2021-08-25 19:52 ` pinskia at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.4                         |9.5

--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug debug/53118] [9/10/11/12 regression] -feliminate-dwarf2-dups is broken for C++
  2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2021-06-01  8:05 ` rguenth at gcc dot gnu.org
@ 2021-08-25 19:52 ` pinskia at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-25 19:52 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-feliminate-dwarf2-dups was removed in GCC 8 by r8-2622 so closing as won't
fix.

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

end of thread, other threads:[~2021-08-25 19:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25 15:20 [Bug debug/53118] New: [4.5/4.6/4.7 regression] -feliminate-dwarf2-dups is broken for C++ jason at gcc dot gnu.org
2012-04-26  9:09 ` [Bug debug/53118] " rguenth at gcc dot gnu.org
2012-04-26 14:25 ` rguenth at gcc dot gnu.org
2012-07-02 12:15 ` rguenth at gcc dot gnu.org
2013-04-12 15:17 ` [Bug debug/53118] [4.7 " jakub at gcc dot gnu.org
2014-06-12 13:07 ` rguenth at gcc dot gnu.org
2014-06-12 13:39 ` [Bug debug/53118] [4.8/4.9/4.10 " jason at gcc dot gnu.org
2015-02-26 16:54 ` [Bug debug/53118] [4.8/4.9/5 " aldyh at gcc dot gnu.org
2015-03-02 21:05 ` jason at gcc dot gnu.org
2015-06-22 14:21 ` [Bug debug/53118] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2021-05-14  9:46 ` [Bug debug/53118] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:05 ` rguenth at gcc dot gnu.org
2021-08-25 19:52 ` pinskia at gcc dot gnu.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).