This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Simple optimizations missing
- To: dewar at gnat dot com
- Subject: Re: Simple optimizations missing
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 09 Sep 2001 19:37:21 -0700
- CC: gcc at gcc dot gnu dot org
- References: <20010909144652.9F4FAF2B84@nile.gnat.com>
dewar@gnat.com writes:
> <<For floating point: 0.0/0.0 might generate a floating point exceptions
> and the result is a NaN. The same applies for the infinites.
> >>
>
> Of course this is only required if you are trying to be strict IEEE, I
> would think it perfectly fine to do this optimization unless -mieee were set.
GCC is strict IEEE by default on platforms where this is reasonable
(like powerpc and anything with soft-float). IMHO it should be strict
IEEE everywhere by default and people should use -ffast-math (or
something) when they know non-IEEEness is safe.
--
- Geoffrey Keating <geoffk@geoffk.org>