http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49288
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-06-06 12:25:45 UTC --- --- /opt/gcc/_clean/gcc/testsuite/g++.dg/debug/dwarf2/cdtor-1.C 2011-05-31 14:24:18.000000000 +0200 +++ /opt/gcc/work/gcc/testsuite/g++.dg/debug/dwarf2/cdtor-1.C 2011-06-06 14:19:13.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\[:\n\r\]" 2 } } is probably a better patch tested on x86_64-apple-darwin10 and powerpc-apple-darwin9).