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: Help with bit-field semantics in C and C++


Richard Henderson wrote:

I'm going to sidestep the question of whether or not the compiler
should force the value into a valid range upon cast or assignment
and ask a different question.

Is TYPE_PRECISION (t) < GET_MODE_PRECISION (TYPE_MODE (t)) the
correct representation?


Interesting idea. Are there any other cases where TYPE_PRECISION != GET_MODE_PRECISION? If not, we could eliminate the former...

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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