This is the mail archive of the gcc-patches@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]

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.

Arend



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