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: [PATCH] Document arithmetic overflow semantics


> and clearly this is in incorrect in many cases, for example int->long
> conversion and indeed anything that involves integer operands of
> different sizes.

Sorry for confusing things, but yes, of course the interpretation of values
is as signed values where it matters, but for addition, subtraction and
multiplication it does not, and the proper way of representing these in the
tree to get tyhe right results is to use unsigned oeprations.


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