This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: /internet
According to Joe Buck:
> NCEG:
> > Thus, the result of the sum (a + 32760) is next added to b,
> > and that result is then added to 5 which results in the
> > value assigned to a. On a machine in which overflows
> > produce an explicit trap and in which the range of values
> > representable by an int is [-32768, +32767], the
> > implementation cannot rewrite this expression as
> >
> > a = ((a + b) + 32765);
>
> Amazing. These guys are trying to turn C into Ada.
Hey, it only applies to machines where integer overflows trap. Would
it be a problem to say that EGCS targets should never include such
environments? Integer overflow traps are almost unheard of in C.
--
Chip Salzenberg - a.k.a. - <chip@perlsupport.com>
"When do you work?" "Whenever I'm not busy."