This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/27221] g++.dg/ext/alignof2.C fails on powerpc-darwin (and powerpc-aix)
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2007 20:04:36 -0000
- Subject: [Bug testsuite/27221] g++.dg/ext/alignof2.C fails on powerpc-darwin (and powerpc-aix)
- References: <bug-27221-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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