This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Defaulting to -fno-math-errno (was: Fwd: weird optimization in sin+cos, x86 backend)
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>, gcc at gcc dot gnu dot org
- Date: Sun, 19 Feb 2012 00:07:00 +0100 (CET)
- Subject: Defaulting to -fno-math-errno (was: Fwd: weird optimization in sin+cos, x86 backend)
- References: <CAO9iq9EN_COpRNbHXA_MZjS9rfOeGnvjy9Hyb-wMvwiQf9Jj2Q@mail.gmail.com> <CAO9iq9FNxRUHjdoBGe-31y_KEdneAoTUQkztjNvFS5yGJA8Law@mail.gmail.com>
On Sun, 12 Feb 2012, Janne Blomqvist wrote:
> If one were to create a new libm, why not dispense with the errno
> stuff altogether, and make -fno-math-errno the default, at least in
> c99/c++11 modes (and set the math_errhandling macro properly). Some
> quick googling suggests that libm's which don't set errno are not that
> uncommon, e.g.
Yes, indeed. Alas there does not seem to be an easy way to make
-fno-math-errno the default for a target?
(Otherwise I'd make this change for *-*-freebsd, for example.)
Gerald