From 36bc6c652099a5a08a6792b86ab442a0aa50c9a4 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sun, 19 Apr 2020 14:20:51 -0400 Subject: [PATCH] rs6000: Skip DWARF5 and -fcompare-debug testcases on AIX. AIX does not support DWARF5 sections. -fcompare-debug causes gratuitous testcase failures on AIX. 2020-04-19 David Edelsohn * g++.dg/debug/dwarf2/pr85550.C: Skip AIX. * g++.dg/debug/pr94272.C: Skip AIX. * g++.dg/debug/pr94281.C: Skip AIX. * g++.dg/debug/pr94323.C: Skip AIX. --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C | 1 + gcc/testsuite/g++.dg/debug/pr94272.C | 1 + gcc/testsuite/g++.dg/debug/pr94281.C | 1 + gcc/testsuite/g++.dg/debug/pr94323.C | 1 + 5 files changed, 11 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 11143e7e70f..27ab5478d29 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-04-19 David Edelsohn + + * g++.dg/debug/dwarf2/pr85550.C: Skip AIX. + * g++.dg/debug/pr94272.C: Skip AIX. + * g++.dg/debug/pr94281.C: Skip AIX. + * g++.dg/debug/pr94323.C: Skip AIX. + 2020-04-19 Iain Sandoe * g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C: Require diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C b/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C index 72c03b9c7e3..35b0f56e959 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C @@ -1,6 +1,7 @@ // PR debug/85550 // { dg-do link } // { dg-options "-O2 -g -fdebug-types-section" } +// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } struct A { int bar () const { return 0; } diff --git a/gcc/testsuite/g++.dg/debug/pr94272.C b/gcc/testsuite/g++.dg/debug/pr94272.C index 78522e00472..39956bee0ab 100644 --- a/gcc/testsuite/g++.dg/debug/pr94272.C +++ b/gcc/testsuite/g++.dg/debug/pr94272.C @@ -1,6 +1,7 @@ // PR c++/94272 // { dg-do compile } // { dg-options "-O2 -fnon-call-exceptions -fcompare-debug" } +// { dg-xfail-if "AIX compare debug" { powerpc-ibm-aix* } } int *c, d, *e; diff --git a/gcc/testsuite/g++.dg/debug/pr94281.C b/gcc/testsuite/g++.dg/debug/pr94281.C index 06386917423..c9d89915f03 100644 --- a/gcc/testsuite/g++.dg/debug/pr94281.C +++ b/gcc/testsuite/g++.dg/debug/pr94281.C @@ -1,6 +1,7 @@ // PR debug/94281 // { dg-do compile } // { dg-options "-O1 -fno-tree-dce -fipa-icf -fno-tree-forwprop -fcompare-debug" } +// { dg-xfail-if "AIX compare debug" { powerpc-ibm-aix* } } void fn1() { diff --git a/gcc/testsuite/g++.dg/debug/pr94323.C b/gcc/testsuite/g++.dg/debug/pr94323.C index eac81a3867e..daee49a20ae 100644 --- a/gcc/testsuite/g++.dg/debug/pr94323.C +++ b/gcc/testsuite/g++.dg/debug/pr94323.C @@ -1,6 +1,7 @@ // PR debug/94323 // { dg-do compile } // { dg-options "-O2 -fcompare-debug" } +// { dg-xfail-if "AIX compare debug" { powerpc-ibm-aix* } } volatile int a; -- 2.30.2