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]

Use of REDUCE_BIT_FIELD in NOP_EXPR case


It looks wrong.  Consider converting sizetype to bitsizetype on a
64-bit machine.  We have TYPE_PRECISION (type) as 68.  Then we expand
the input, which will be DImode.  But calling_reduce_bit_field and
passing a 68-bit type with DImode will cause such oddities as shifts of
negative numbers.

I think the REDUCE_BIT_FIELD needs to be called after the conversion.
This came up compiling s-secsta.adb.


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