[Bug testsuite/27221] g++.dg/ext/alignof2.C fails on powerpc-darwin (and powerpc-aix)

howarth at nitro dot med dot uc dot edu gcc-bugzilla@gcc.gnu.org
Mon Dec 24 20:04:00 GMT 2007



------- Comment #1 from howarth at nitro dot med dot uc dot edu  2007-12-24 20:04 -------
Andrew,
      Changing the testcase to...

extern "C" void abort();

struct A
{
  double a; 
} sa;

struct B
{
  double b;
  char c;
} sb;

int main()
{
  if (__alignof (sa) != __alignof (sa.a)
      || __alignof (sb) != __alignof (sb.b))
    abort();
}

still results in the testcase failing on powerpc-apple-darwin9.
According to your argument shouldn't it now be passing since
both instances of the double are now first in the structs?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27221



More information about the Gcc-bugs mailing list