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 testsuite/51941] FAIL: g++.dg/debug/dwarf2/nested-3.C scan-assembler


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

--- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> 2012-01-23 11:22:46 UTC ---
Created attachment 26424
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26424
Candidate fix for the bug

This candidate fix works for me on both x86_64-unknown-linux-gnu and
x86_64-apple-darwin10 built as a cross compiler.

The problem was that on darwin, we get an extra line 
  .set L$set$31,LASF0-Lsection__debug_str

and I am not sure why.

I don't think we need to prevent the test from running on Darwin (because of it
generating dwarf4) as, IIUC, we don't rely on anything released by Apple for
this.  We just scan the assembly output from cc1plus.

Could some Darwin savvy people confirm that the fix works for them?

Thanks.


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