--- Comment #3 from manu at gcc dot gnu dot org 2007-05-28 12:54 ---
Worse, with __builtin_sin(M_PI), I get an error:
test.c:2: error: initializer element is not constant
Maybe this is fixed now in GCC 4.3 by using MPFR.
--
manu at gcc dot gnu dot org changed:
What|
--- Comment #2 from andrei dot kouznetsov at gmail dot com 2007-05-26
18:47 ---
Ok, but __builtin_sin(M_PI) is not constant again
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32099
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-26 18:26 ---
No, sin(0) is not constant in C. C has specific rules about constant
expression. You can use __builtin_sin(0) to always get the constant folding.
--
pinskia at gcc dot gnu dot org changed:
What|