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]

Re: sizetype, bitsizetype and DECL_FIELD_BITPOS


    >                                        I see places where it is
    > used in both contexts and, unless I'm missing something, we are missing
    > conversions.
    
    I suppose you mean this?

          offset = size_binop (PLUS_EXPR, offset,
                               size_binop (EXACT_DIV_EXPR, var,
                                           size_int (BITS_PER_UNIT)));

Yes.  VAR is clearly bitsizetype and OFFSET is supposed to be sizetype
and there's no conversion.


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