Defaulting to -fno-math-errno (was: Fwd: weird optimization in sin+cos, x86 backend)

2012-02-18 Thread Gerald Pfeifer
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

Fwd: weird optimization in sin+cos, x86 backend

2012-02-12 Thread Janne Blomqvist
Richard Guenther wrote: > > I don't buy the argument that inlining math routines (apart from those we > already handle) would improve performance. What will improve performance is > to have separate entry points to the routines to skip errno handling, NaN/Inf > checking or rounding mode selecti