Commits

Ronald Oussoren  committed cf7e489

And the last one now passes too: the embedded alignment of large basic types
(double, long double, ...) is 4 if they are the second or later element of a
struct, except for long double whose alignment is always 16 (contrary to
what is suggested by the ABI docs). This is on PPC.

  • Participants
  • Parent commits da4afd7
  • Branches pyobjc-ancient

Comments (0)

Files changed (1)

File libffi-src/src/prep_cif.c

 
       curalign = (*ptr)->alignment;
       if (ptr != &(arg->elements[0])) {
-	      if (curalign > 4) {
+	      if (curalign > 4 && curalign != 16) {
 		      curalign = 4;
 	      }
       }