On Thu, 3 Jan 2019, Rainer Orth wrote: > gcc.dg/debug/dwarf2/inline5.c currently FAILs with Solaris as (both > sparc and x86): > > FAIL: gcc.dg/debug/dwarf2/inline5.c scan-assembler-not \\\\(DIE > \\\\(0x([0-9a-f]*)\\\\) DW_TAG_lexical_block\\\\)[^#/!]*[#/!] > [^(].*DW_TAG_lexical_block\\\\)[^#/!x]*x\\\\1[^#/!]*[#/!] > DW_AT_abstract_origin > FAIL: gcc.dg/debug/dwarf2/inline5.c scan-assembler-times > DW_TAG_lexical_block\\\\)[^#/!]*[#/!] \\\\(DIE \\\\(0x[0-9a-f]*\\\\) > DW_TAG_variable 1 > > The first failure seems to be caused because .* performs multiline > matches by default in Tcl; tightening it to [^\n]* avoids the problem.
Hmm, but the matches are supposed to match multiple lines... how does it fail for you? > The second failures happens because Solaris as doesn't support .uleb128, > so we get e.g. > > .byte 0xc / uleb128 0xc; (DIE (0x19f) DW_TAG_lexical_block) > .byte 0xd / uleb128 0xd; (DIE (0x1a0) DW_TAG_variable) > > instead of > > .uleb128 0xc / (DIE (0xad) DW_TAG_lexical_block) > .uleb128 0xd / (DIE (0xae) DW_TAG_variable) > > To fix this, the patch allows for additional non-comment text before (DIE. > > Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and > x86_64-pc-linux-gnu. Ok for mainline?