Gabriele SVELTO <[EMAIL PROTECTED]> writes:

> Since CLI doesn't support bit-fields I am trying to turn COMPONENT_REF
> statements working on bit-fields into statements working on artificial
> fields overlapping the bit-fields plus the necessary shift & mask
> operations so as to simplify CLI emission later.

Are you emitting CLI directly from GIMPLE?  It may help to look at
store_bit_field and extract_bit_field so see how this sort of thing is
handled when expanding trees to RTL.

I don't recommend adding artificial fields to the struct.  If you need
them in CLI, then add them at CLI generation time.  If you can get
away with direct memory references, then do that.

Ian

Reply via email to