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: [tree-ssa] More CCP fixes [patch]


Richard Henderson wrote:-

> Neil's bit field patches should fix this by properly representing
> x.u as a 3-bit unsigned integer.

Yeah, I might come back to this during the freeze.

IIRC we only use a single type to represent a bitfield.  IMO this
is doomed (my old patch tried to make it a 3-bit uint like you
say above, but that screws up debug info).

At least for now, until deeper issues with debug info and the like
are fixed, IMO we really need two types to have a hope of fixing
these issues:

1) its true type (3 bit unsigned int) in the current type field
2) its declared type ("unsigned int" or enum bitfield or whatever),
   a new entry in the type structure.

Do you agree?

Neil.


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