Fix gcc.dg/debug/dwarf2/inline5.c with Solaris as (PR debug/87451)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 6 Feb 2019 18:54:16 +0000 (18:54 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 6 Feb 2019 18:54:16 +0000 (18:54 +0000)
PR debug/87451
* gcc.dg/debug/dwarf2/inline5.c: Allow for non-comment before
"(DIE (0x[0-9a-f]*) DW_TAG_variable".
xfail scan-assembler-not with Solaris as.

From-SVN: r268588

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/inline5.c

index e14e7ae80053b6106002a469799b046aa5e5ec98..5a000fef16adf353a84142e750d20222a9fa789e 100644 (file)
@@ -1,3 +1,10 @@
+2019-02-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR debug/87451
+       * gcc.dg/debug/dwarf2/inline5.c: Allow for non-comment before
+       "(DIE (0x[0-9a-f]*) DW_TAG_variable".
+       xfail scan-assembler-not with Solaris as.
+
 2019-02-06  Bill Seurer  <seurer@linux.vnet.ibm.com>
 
        * gcc.target/powerpc/vsx-vector-6.p7.c: Update instruction
index b3562964a3e288876b4c31c006080be6895de645..029438e6dc09c23efc2a28d507c0080554fed0ff 100644 (file)
@@ -5,11 +5,11 @@
 /* { dg-do compile } */
 /* { dg-final { scan-assembler-times "DW_TAG_inlined_subroutine" 2 } } */
 /* { dg-final { scan-assembler-times "DW_TAG_lexical_block\\)\[^#/!@;\\|\]*\[#/!@;\\|\]+ +DW_AT_abstract_origin" 2 } } */
-/* { dg-final { scan-assembler-times "DW_TAG_lexical_block\\)\[^#/!@;\\|\]*\[#/!@;\\|\]+ +\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_variable" 1 } } */
+/* { dg-final { scan-assembler-times "DW_TAG_lexical_block\\)\[^#/!@;\\|\]*\[#/!@;\\|\]+ +\[^#/!@\\|\]*\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_variable" 1 } } */
 /* We do not know which is output first so look for both invalid abstract
    origins on the lexical blocks (knowing that the abstract instance has
    no attribute following the DW_TAG_lexical_block.  */
-/* { dg-final { scan-assembler-not "\\(DIE \\(0x(\[0-9a-f\]*)\\) DW_TAG_lexical_block\\)\[^#/!@;\\|\]*\[#/!@;\\|\]+ +\[^(\].*DW_TAG_lexical_block\\)\[^#/!@;\\|x\]*x\\1\[^#/!@;\\|\]*\[#/!@;\\|\] +DW_AT_abstract_origin" } } */
+/* { dg-final { scan-assembler-not "\\(DIE \\(0x(\[0-9a-f\]*)\\) DW_TAG_lexical_block\\)\[^#/!@;\\|\]*\[#/!@;\\|\]+ +\[^(\].*DW_TAG_lexical_block\\)\[^#/!@;\\|x\]*x\\1\[^#/!@;\\|\]*\[#/!@;\\|\] +DW_AT_abstract_origin" { xfail { *-*-solaris2.* && { ! gas } } } } } */
 /* { dg-final { scan-assembler-not "DW_TAG_lexical_block\\)\[^#/!@;\\|x\]*x(\[0-9a-f\]*)\[^#/!@;\\|\]*\[#/!@;\\|\]+ +DW_AT_abstract_origin.*\\(DIE \\(0x\\1\\) DW_TAG_lexical_block\\)\[^#/!@;\\|\]*\[#/!@;\\|\]+ +DW_AT" } } */
 
 int foo (int i)