g++.dg/debug/dwarf2/pr54508.C is FAILing on Solaris 9/x86 (both with as and gas): FAIL: g++.dg/debug/dwarf2/pr54508.C -std=gnu++98 scan-assembler "c\\\\\\\\0"[ \\t]+[#;/!|@]+ DW_AT_name[\\r\\n]+[^\\r\\n]+[\\r\\n]+[^\\r\\n]+[\\r\\n]+[^#;/!|@]+[#;/!|@]+ DW_AT_decl_line[\\r\\n]+[^#;/!|@]+[#;/!|@]+ DW_AT_declaration FAIL: g++.dg/debug/dwarf2/pr54508.C -std=gnu++98 scan-assembler "s\\\\\\\\0"[ \\t]+[#;/!|@]+ DW_AT_name FAIL: g++.dg/debug/dwarf2/pr54508.C -std=gnu++98 scan-assembler "f1\\\\\\\\0"[ \\t]+[#;/!|@]+ DW_AT_name FAIL: g++.dg/debug/dwarf2/pr54508.C -std=gnu++98 scan-assembler "u\\\\\\\\0"[ \\t]+[#;/!|@]+ DW_AT_name[\\r\\n]+[^\\r\\n]+[\\r\\n]+[^\\r\\n]+[\\r\\n]+[^#;/!|@]+[#;/!|@]+ DW_AT_decl_line[\\r\\n]+[^#;/!|@]+[#;/!|@]+ DW_AT_declaration This turns out to be due to whitespace differences in assembler comments between Solaris 9 and 10: - .byte 0x3 / uleb128 0x3; (DW_AT_name) + .byte 0x3 / uleb128 0x3; (DW_AT_name) I've traced this to different values of ASM_COMMENT_START: config/i386/unix.h:#define ASM_COMMENT_START "/ " config/i386/sol2-bi.h:#define ASM_COMMENT_START "/" The following patch fixes this; tested with the appropriate runtest invocations on i386-pc-solaris2.9, i386-pc-solaris2.10, and x86_64-unknown-linux-gnu. Ok for mainline? Rainer 2013-01-08 Rainer Orth * g++.dg/debug/dwarf2/pr54508.C: Allow for more whitespace after asm comments.