http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49288
Summary: FAIL: g++.dg/debug/dwarf2/cdtor-1.C Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassig...@gcc.gnu.org ReportedBy: domi...@lps.ens.fr CC: do...@gcc.gnu.org Host: *-apple-darwin* Target: *-apple-darwin* Build: *-apple-darwin* Since revision 174497 the we have the following failure on *-apple-darwin* FAIL: g++.dg/debug/dwarf2/cdtor-1.C scan-assembler-times [^\\n\\r]*DW_AT_MIPS_linkage_name: 2 Revision 174466 is OK (see http://gcc.gnu.org/ml/gcc-testresults/2011-05/msg03636.html ). AFAICT the test has never passed on darwin since its introduction at revision 174474. Grepping the assembler for DW_AT_MIPS_linkage_name I get [macbook] f90/bug% grep DW_AT_MIPS_linkage_name cdtor-1.s .ascii "_ZN1KC1Ev\0" # DW_AT_MIPS_linkage_name .ascii "_ZN1KD1Ev\0" # DW_AT_MIPS_linkage_name .byte 0x87,0x40 # uleb128 0x2007; (DW_AT_MIPS_linkage_name) The following patch fixes the test on darwin --- ../_clean/gcc/testsuite/g++.dg/debug/dwarf2/cdtor-1.C 2011-05-31 14:24:18.000000000 +0200 +++ gcc/testsuite/g++.dg/debug/dwarf2/cdtor-1.C 2011-06-05 13:54:25.000000000 +0200 @@ -14,4 +14,4 @@ main() K k; } -// { dg-final {scan-assembler-times "\[^\n\r\]*DW_AT_MIPS_linkage_name:" 2 } } +// { dg-final {scan-assembler-times "\[^\n\r\]*DW_AT_MIPS_linkage_name\[^\)\]" 2 } }