This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: signed is undefined and has been since 1992 (in GCC)
> > Does -ftrapv ever take advantage of trapping instructions where the
> > hardware has them available?
>
> Yes, for example Alpha.
OK, but it's the only example. :-)
> > Does anyone make substantial use of -ftrapv in production
>
> There are rarely bug reports about it; for example pointer difference
> with odd sized objects was broken for years, and reported only twice
> or so.
-ftrapv is simply not usable as of today because the performance degradation
is abysmal. Plus it is broken in very simple cases (PR middle-end/19020).
--
Eric Botcazou