This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/44641] Generated constructors and destructors get wrong debug location when a typedef uses a forward declaration of the type before the definition


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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ro at gcc dot gnu.org

--- Comment #23 from Rainer Orth <ro at gcc dot gnu.org> 2011-01-21 11:53:44 UTC ---
g++.dg/debug/dwarf2/lineno-simple1.C also FAILs on IRIX 6.5, as does
g++.dg/debug/dwarf2/pr46527.C for what seems to be the same reason:

FAIL: g++.dg/debug/dwarf2/lineno-simple1.C scan-assembler
main:[^\\\\t]*(\\\\t.(fnstart|frame|mask|file)[^\\\\t]*)*\\\\t[^:]+:12\\\\n

The code around main looks like this:

         #
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/debug/dwarf2/lineno-
simple1.C:12
        .loc 1 12 0
        .set    nomips16
        .ent    main
        .type   main, @function
main:
        .frame  $fp,16,$31              # vars= 0, regs= 1/0, args= 0, gp= 0
        .mask   0x40000000,-8
        .fmask  0x00000000,0

I'm attaching the complete assembler output.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]