4.0 regression: g++ class layout on PPC32 has changed

Andrew Pinski pinskia@physics.uc.edu
Mon Apr 4 19:13:00 GMT 2005


On Apr 4, 2005, at 2:33 PM, Andrew Pinski wrote:

>
> On Apr 4, 2005, at 1:01 PM, Andrew Haley wrote:
>
>> Giovanni Bajo writes:
>>> Is __alignof__( ::java::lang::Object ) the same under 3.4 and 4.0 in 
>>> the
>>> first place?
>>
>> Yes, 4 in both cases.
>
>
> And here is the most reduced testcase (and it shows that the C and C++
> front-ends don't agree any more which is bad):

Using the following compile time testcase (only for x86-pc-linux-gnu):
typedef struct Parent
{
   long long m;
   int *scratch;
   void * __attribute__((aligned(8))) this$0;
}Parent;

int f[sizeof(Parent)!=24?-1:1];

I found that this started to be rejected between 2004-06-22-trunk 
(#470) and 2004-06-24-trunk (#471).

I used Phil's regression hunter: <http://www.devphil.com/~reghunt/>.

Thanks,
Andrew Pinski



More information about the Gcc mailing list