The addition of the dg-skip-if for AIX changes the line number for the
variable declarations in the file which are checked by the dg-final
directives.  Thus those directives need a trivial update.

Committed to the trunk

Jeff
commit 9a3ab93ceb23fbe45bfbc597d88f208fe092ea14
Author: Jeff Law <l...@redhat.com>
Date:   Mon Jan 18 16:04:11 2021 -0700

    [committed] Minor fix to pr41445-7 testcase
    
    gcc/testsuite
            * gcc.dg/debug/dwarf2/pr41445-7.c: Fix expected output.

diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c 
b/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c
index d1e8f46e840..1120c6db24d 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c
@@ -13,5 +13,5 @@ int A(B) ;
 /*  We want to check that both vari and varj have the same line
     number.  */
 
-/* { dg-final { scan-assembler 
"DW_TAG_variable\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\"vari\[^\\r\\n\]*DW_AT_name(\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*DW_AT_)*\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\[^\\r\\n\]*DW_AT_decl_line
 \\((0xa|10)\\)" } } */
-/* { dg-final { scan-assembler 
"DW_TAG_variable\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\"varj\[^\\r\\n\]*DW_AT_name(\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*DW_AT_)*\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\[^\\r\\n\]*DW_AT_decl_line
 \\((0xa|10)\\)" } } */
+/* { dg-final { scan-assembler 
"DW_TAG_variable\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\"vari\[^\\r\\n\]*DW_AT_name(\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*DW_AT_)*\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\[^\\r\\n\]*DW_AT_decl_line
 \\((0xb|11)\\)" } } */
+/* { dg-final { scan-assembler 
"DW_TAG_variable\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\"varj\[^\\r\\n\]*DW_AT_name(\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*DW_AT_)*\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\[^\\r\\n\]*DW_AT_decl_line
 \\((0xb|11)\\)" } } */

Reply via email to