On Jun 25, 2006, at 11:12 AM, Daniel Jacobowitz wrote:

I learned while working on the zone collector that there is at least
one platform where this doesn't work, because "long double" had an
alignment of eight on its own and four as a structure field.  It might
have been powerpc-darwin.

Maybe the struct should be rewritten like:
struct max_alignment {
  char c;
  union {
    long double d;
    HOST_WIDEST_INT i;
  } u;
};

To make sure the long double was first which is usually the cures the whole struct
alignment issues.

I will see if this fixes the issue but after I finish watching Dr. Who.

Thanks,
Andrew Pinski

Reply via email to