This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Document arithmetic overflow semantics
- From: dewar at gnat dot com (Robert Dewar)
- To: aph at redhat dot com, dewar at gnat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 13 Feb 2003 14:37:38 -0500 (EST)
- Subject: 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.