[Bug c++/70066] alignas imposes the wrong limit on data members

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 3 18:13:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70066

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is the definition which matters:

/* Minimum size in bits of the largest boundary to which any
   and all fundamental data types supported by the hardware
   might need to be aligned. No data type wants to be aligned
   rounder than this.

   Pentium+ prefers DFmode values to be aligned to 64 bit boundary
   and Pentium Pro XFmode values at 128 bit boundaries.

   When increasing the maximum, also update
   TARGET_ABSOLUTE_BIGGEST_ALIGNMENT.  */

#define BIGGEST_ALIGNMENT \
  (TARGET_IAMCU ? 32 : (TARGET_AVX512F ? 512 : (TARGET_AVX ? 256 : 128)))


More information about the Gcc-bugs mailing list