This is the mail archive of the gcc@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: PR 6212


Richard Kenner wrote:-

> Moreover, what do you do about bitfields?  Do we now have types with sizes that
> are not multiples of bytes?

The current implementation of bitfields is quite broken in GCC; they are
given a type and value range mostly of the declared type.  They should
have a new type whose precision is the bitfield's precision.  That they
don't is the cause of at least 5 open PR's in GNATS and many nasty bugs.

Neil.


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