https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54192

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #7)
> > I suppose that argues for a tighter coupling of -fnon-call-exceptions
> > and -ftrapping-math and in particular not enabling -ftrapping-math
> > by default (unless -fnon-call-exceptions is enabled?).
> 
> Nope, in Ada where -fnon-call-exceptions is the default, -fno-trapping-math
> is also the default (at least on native platforms).  If you do not do that,
> then you end up with EH edges from every single floating-point operations.

Note this also argues for splitting -ftrapping-math into the FENV access
part and the part that considers exception state changes causing
observable traps (aka for Fortran -ffpe-trap=...).  Mixing both is quite
bad with -fnon-call-exceptions as you say.

Reply via email to