This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC beaten by ICC in stupid trig test!
On Mon, 15 Mar 2004, Zdenek Dvorak wrote:
> > Perhaps it's ok moving doit even when -ffast-math is not passed, I don't
> > know for sure, honestly...
>
> it should be -- it is just an invariant motion (the value returned by
> doit obviously is always the same, since we invoke it with the same
> argument).
You need to allow for the possibility of doit trapping, but moving it
should still be OK in this case by virtue of C99 F.8.1#3: you don't need
to keep the same number of traps as implied by the source code.
--
Joseph S. Myers
jsm@polyomino.org.uk