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.
// { 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" } }
// { 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;
// { 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 } }
// { 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" } } */
// { 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" } } */
// { 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" } } */
// { 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" } } */
*/
/* 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.
// { 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" } } */
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)
/* 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"