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]

insv vs one-bit fields


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).

  if (HAVE_insv
      && GET_MODE (value) != BLKmode
      && !(bitsize == 1 && GET_CODE (value) == CONST_INT)

So... why is it illegal to put a constant into a single bit field?


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