> Regarding sincos(), a patch was submitted to gcc-patches > (http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00555.html). It used > soon-to-be-obsoleted ADDRESSOF optimization in sincos expander > (http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00653.html), so it was not > commited to CVS. As fsincos is generated automatically, it was somehow > put on hold... Just FYI (I don't think this is appropriate for stage3, and I haven't bootstrapped/regtested it yet), here is a patch that does what I suggested in the message Uros cited above. Some magic is needed to avoid bad interaction with the cos (-x) => cos (x) optimization, but the patch is quite simple. Paolo 2004-09-24 Paolo Bonzini * builtins.c (fold_builtin_sincos): New. (fold_builtin): Call it. 2004-09-24 Paolo Bonzini * gcc.dg/i386-387-9.c, gcc.dg/builtins-47.c: New testcases.