Where does the C standard describe overflow of signed integers?

Matthew Woodcraft mattheww@chiark.greenend.org.uk
Thu Jul 14 17:57:00 GMT 2005


Paul Schlie wrote:
>As optimization seems to be a non-argument, as by analogy all
>optimizations which are available for unsigned arithmetic are
>correspondingly available for signed integer operations; as any signed
>value may then be thought of as being unsigned for the purposes of
>computation and/or comparison.

What about optimising x*2/2 to x?

-M-



More information about the Gcc mailing list