------- Comment #8 from rguenth at gcc dot gnu dot org 2008-03-10 16:59 ------- Are you sure your calculator isn't wrong? ;) Gcc 4.2 produces the same result for me (and only gcc 4.3 constant folds the result).
Of course this might be a glibc issue as indeed the 32bit version produces ./t sin(cos(tan(PI/2))) = -0.827351 huhm. For just tan(PI/2) I get 16331778728383844.000000 (32bit) 16331239353195370.000000 (64bit) which is different enough to make a subsequent (range-reduced) sin or cos different. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35523