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: insv vs one-bit fields


DJ Delorie wrote:
> Why are one-bit bitfields not allowed?  I'm trying to support a
> BSET/BCLR pair that *only* support single bit fields, for I/O ports,
> which are always volatile (and thus you have to use insv, as gcc won't
> do a "or #1,port5" if port5 is volatile).

  ;) Of course, you could always hack around combine to allow it to accept
volatiles in a tightly-circumscribed set of conditions that will allow gcc to
generate these OR instructions for you.  I found that approach worked pretty
good for me; YMMV but I could always post a code sample...


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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