patch for -ftrapv option.

Andreas Jaeger aj@suse.de
Wed Oct 18 21:57:00 GMT 2000


>>>>> Chandra Chavva writes:

 > The attached patch is to support -ftrapv option. This option generates 
 > traps for signed overflow on addition, subtraction, multiplication 
 > operations.

 > I am going to checkin as this patch has already been approved.
Two problems:
There's no ChangeLog entry for invoke.texi and
[...]
 > + 
 > +       /* CYGNUS LOCAL - amylaar/-ftrapv:  Note that ABS doesn't yield a
 > +          positive number for INT_MIN, but that is compensated by the
 > +          subsequent overflow when subtracting one / negating.
 > +          END CYGNUS LOCAL */
Please remove this.

Thanks,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


More information about the Gcc-patches mailing list