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

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