This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]