signed is undefined and has been since 1992 (in GCC)
Joe Buck
Joe.Buck@synopsys.COM
Tue Jun 28 21:41:00 GMT 2005
On Tue, Jun 28, 2005 at 04:24:38PM -0400, Robert Dewar wrote:
> Paul Koning wrote:
>
> >And also because most people believe that C applies normal computer
> >arithmetic, and they believe that normal computer arithmetic is
> >wrapped 2's complement. (And indeed it usually is, give or take some
> >bizarre exceptions like MAX_INT % -1)
>
> and not so bizarre exceptions like machines that trap on signed
> overflow.
That's a non-issue in practice, because no C compiler uses such
instructions by default.
More information about the Gcc
mailing list