From: David Edelsohn Date: Sun, 17 Jan 2021 23:18:56 +0000 (-0500) Subject: testsuite: Skip DWARF 5 testcases on AIX. X-Git-Tag: upstream/12.2.0~10195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b654d23a470af25442e496ba62b5558e7c3ff1e6;p=platform%2Fupstream%2Fgcc.git testsuite: Skip DWARF 5 testcases on AIX. AIX does not support DWARF 5. This patch skips the DWARF 5-specific testcases. gcc/testsuite/ChangeLog: * g++.dg/debug/dwarf2/inline-ns-2.C: Skip on AIX. * g++.dg/debug/dwarf2/inline-var-2.C: Skip on AIX. * g++.dg/debug/dwarf2/inline-var-3.C: Skip on AIX. * g++.dg/debug/dwarf2/lang-cpp11.C: Skip on AIX. * g++.dg/debug/dwarf2/lang-cpp14.C: Skip on AIX. * g++.dg/debug/dwarf2/lang-cpp17.C: Skip on AIX. * g++.dg/debug/dwarf2/lang-cpp20.C: Skip on AIX. * gcc.dg/debug/dwarf2/inline6.c: Skip on AIX. * gcc.dg/debug/dwarf2/lang-c11.c: Skip on AIX. * gcc.dg/debug/dwarf2/pr41445-7.c: Skip on AIX. * gcc.dg/debug/dwarf2/pr41445-8.c: Skip on AIX. --- diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/inline-ns-2.C b/gcc/testsuite/g++.dg/debug/dwarf2/inline-ns-2.C index 4d9aed7..c244f8f 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/inline-ns-2.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/inline-ns-2.C @@ -1,4 +1,5 @@ // { dg-options "-O2 -gdwarf-5 -dA" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // { dg-final { scan-assembler-times " DW_AT_export_symbols" 2 } } // { dg-final { scan-assembler-not "DIE \\(\[^\n\r\]*\\) DW_TAG_imported_module" } } diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-2.C b/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-2.C index 63052d6..9858cf1 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-2.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-2.C @@ -1,6 +1,7 @@ // { dg-do compile { target c++17 } } // { dg-options "-O -gdwarf-5 -dA -gno-strict-dwarf" } // { dg-require-weak "" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // { dg-final { scan-assembler-not "DW_TAG_member" } } inline int a; diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-3.C b/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-3.C index 7225258..6345b5e 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-3.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-3.C @@ -2,6 +2,7 @@ // { dg-do compile { target c++17 } } // { dg-options "-O -gdwarf-5 -dA -gno-strict-dwarf -fno-eliminate-unused-debug-symbols" } // { dg-require-weak "" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // { dg-final { scan-assembler-times " DW_AT_inline \\(0x3\\)" 2 } } // { dg-final { scan-assembler-times "0x3\[^\n\r]* DW_AT_inline" 4 } } // { dg-final { scan-assembler-times "0x1\[^\n\r]* DW_AT_inline" 2 } } diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp11.C b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp11.C index 6bdc175..4066c2b 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp11.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp11.C @@ -1,5 +1,6 @@ // { dg-do compile } // { dg-options "-O -std=c++11 -gdwarf-5 -dA" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // DW_LANG_C_plus_plus_11 = 0x001a // { dg-final { scan-assembler "0x1a\[^\n\r]* DW_AT_language" } } */ diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp14.C b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp14.C index 4fbc075..bb587be 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp14.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp14.C @@ -1,5 +1,6 @@ // { dg-do compile } // { dg-options "-O -std=c++14 -gdwarf-5 -dA" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // DW_LANG_C_plus_plus_14 = 0x0021 // { dg-final { scan-assembler "0x21\[^\n\r]* DW_AT_language" } } */ diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp17.C b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp17.C index 460294c..a1e3ccc 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp17.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp17.C @@ -1,5 +1,6 @@ // { dg-do compile } // { dg-options "-O -std=c++17 -gdwarf-5 -dA" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // For -gdwarf-6 hopefully DW_LANG_C_plus_plus_17 // DW_LANG_C_plus_plus_14 = 0x0021 // { dg-final { scan-assembler "0x21\[^\n\r]* DW_AT_language" } } */ diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp20.C b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp20.C index abd7351..62abd61 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp20.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp20.C @@ -1,5 +1,6 @@ // { dg-do compile } // { dg-options "-O -std=c++20 -gdwarf-5 -dA" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // For -gdwarf-6 hopefully DW_LANG_C_plus_plus_20 // DW_LANG_C_plus_plus_14 = 0x0021 // { dg-final { scan-assembler "0x21\[^\n\r]* DW_AT_language" } } */ diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/inline6.c b/gcc/testsuite/gcc.dg/debug/dwarf2/inline6.c index 03013f1..4e6f7a7 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/inline6.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/inline6.c @@ -15,8 +15,9 @@ */ /* Explicitly use dwarf-5 which uses DW_FORM_implicit_const. */ -/* { dg-options "-O -g3 -gdwarf-5 -dA -fgnu89-inline" } */ /* { dg-do compile } */ +/* { dg-options "-O -g3 -gdwarf-5 -dA -fgnu89-inline" } */ +/* { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } */ /* There are 6 inlined subroutines: - One for each subroutine inlined into main, that's 3. diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/lang-c11.c b/gcc/testsuite/gcc.dg/debug/dwarf2/lang-c11.c index f14c49f..6b0d45b 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/lang-c11.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/lang-c11.c @@ -1,5 +1,6 @@ // { dg-do compile } // { dg-options "-O -std=c11 -gdwarf-5 -dA" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } // DW_LANG_C11 = 0x001d // { dg-final { scan-assembler "0x1d.*DW_AT_language" } } */ diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c index 0e0de82..d1e8f46 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c @@ -3,6 +3,7 @@ gets correct locus even when preprocessing separately. */ /* { dg-do compile } */ /* { dg-options "-save-temps -gdwarf-5 -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } */ #define A(x) vari x #define vari(x) diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-8.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-8.c index 3a6eeb5..7667f7a 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-8.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-8.c @@ -1,6 +1,7 @@ /* PR preprocessor/41445 DWARF5 variant*/ /* { dg-do compile } */ /* { dg-options "-gdwarf-5 -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } */ #include "pr41445-5.c"