if (TREE_CODE (to) == COMPONENT_REF
           &&  DECL_BIT_FIELD_TYPE (TREE_OPERAND (to, 1)))
         get_bit_range (&bitregion_start,&bitregion_end,
                        to, tem, bitpos, bitsize);

and shouldn't this test DECL_BIT_FIELD instead of DECL_BIT_FIELD_TYPE?

As I mentioned here:

http://gcc.gnu.org/ml/gcc-patches/2011-05/msg01416.html

I am using DECL_BIT_FIELD_TYPE instead of DECL_BIT_FIELD to determine if a DECL is a bit field because DECL_BIT_FIELD is not set for bit fields with mode sized number of bits (32-bits, 16-bits, etc).

Reply via email to