This is the mail archive of the
mailing list for the GCC project.
Re: Reduce effective sizeof(struct basic_block) 108 -> 80
On Mon, 7 Feb 2005, Richard Henderson wrote:
> On Mon, Feb 07, 2005 at 04:24:27PM +0100, Arend Bayer wrote:
> > /* Various flags. See BB_* below. */
> > - int flags;
> > + unsigned int flags : 9;
> This won't quite do what you think, because there will be 23 bits
> of padding at the end.
I think you missed that this starts at (2 mod 4)-alignment (because of
the change of frequency to short int just before that)? Anyway, I _did_
check that the sizeof() as reported by gdb or indirectly by -fmem-report
is now 80, and was 84 before my patch.