[Bug c/32099] a constant value is said to be not constant

2007-05-28 Thread manu at gcc dot gnu dot org
--- 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

[Bug c/32099] a constant value is said to be not constant

2007-05-26 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c/32099] a constant value is said to be not constant

2007-05-26 Thread andrei dot kouznetsov at gmail dot com
--- 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