[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] question about bit-fields

From: Didier Barvaux
Subject: Re: [Tinycc-devel] question about bit-fields
Date: Tue, 23 Oct 2012 20:07:05 +0200

> > The 2 first fields uses 1 byte with GCC/Clang while they use
> > sizeof(unsigned int) bytes with TCC. GCC/Clang pack the bit fields
> > on the smaller type available. So, sizeof(struct mystruct1) = 4 with
> > GCC/Clang and sizeof(struct mystruct1) = 8 with TCC.
> I tried your "bitfield.c" test with GCC and it failed on the 2nd
> assertion.  Hm ...

Arf, I did a mistake :( I started my tests with GCC and my modified
TCC, it worked. Then I enhanced the test to cover additional cases, and
I forgot to test again with GCC. So my TCC patch is not always conform
to GCC behaviour...

I'll update my patch. Sorry for the noise grischka. 


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]