[PATCH, Darwin, testsuite] Fix PR27221.

Iain Sandoe iain@sandoe.co.uk
Wed May 22 07:57:00 GMT 2019


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();
 



More information about the Gcc-patches mailing list