diff mbox

[committed] skip alignof2.C testcase on AIX

Message ID CAGWvnyk2VPRocwZUemecffjR+Bia=ETXdjGKt=ASJ+A52z2EgA@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn Nov. 27, 2014, 1:03 a.m. UTC
The AIX ABI unfortunately does not use natural alignment.  Type
"double" is 4 word aligned.  However, the alignment of structs with a
first member of double are bumped to doubleword alignment.  This
exactly conflicts with the testcase.

Thanks, David

        * g++.dg/ext/alignof2.C: xfail-run-if on AIX.
diff mbox

Patch

Index: ext/alignof2.C
===================================================================
--- ext/alignof2.C      (revision 218086)
+++ ext/alignof2.C      (working copy)
@@ -3,6 +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* } { "*" } { "" } }

 extern "C" void abort();