This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, Darwin, testsuite] Fix PR27221.
- From: Iain Sandoe <iain at sandoe dot co dot uk>
- To: GCC-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 22 May 2019 08:57:19 +0100
- Subject: [PATCH, Darwin, testsuite] Fix PR27221.
An old one…
This test can never pass on 32b Darwin (or AIX) because the ABI demands a
different result to that being tested. So XFAIL it.
Tested on powerpc-darwin9, powerpc-ibm-aix
Applied to mainline
Iain
gcc/testsuite/
2019-05-22 Iain Sandoe <iain@sandoe.co.uk>
PR testsuite/27221
* g++.dg/ext/alignof2.C: XFAIL for 32bit Darwin.
diff --git a/gcc/testsuite/g++.dg/ext/alignof2.C b/gcc/testsuite/g++.dg/ext/alignof2.C
index 2217590..bd56cf6 100644
--- a/gcc/testsuite/g++.dg/ext/alignof2.C
+++ b/gcc/testsuite/g++.dg/ext/alignof2.C
@@ -3,7 +3,7 @@
// wrong for some fields.
// { dg-do run }
-// { dg-xfail-run-if "AIX ABI increases struct alignment for first member double" { powerpc-ibm-aix* } }
+// { dg-xfail-run-if "AIX/Darwin ABI increases struct alignment for first member double" { powerpc-ibm-aix* || { ilp32 && powerpc-*-darwin* } } }
extern "C" void abort();