Updating glibc mathinlines.h to reflect additional GCC builtins ?
Paolo Bonzini
bonzini@gnu.org
Fri Sep 24 11:29:00 GMT 2004
> 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 <bonzini@gnu.org>
* builtins.c (fold_builtin_sincos): New.
(fold_builtin): Call it.
2004-09-24 Paolo Bonzini <bonzini@gnu.org>
* gcc.dg/i386-387-9.c, gcc.dg/builtins-47.c: New testcases.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fold-builtin-sincos.patch
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040924/93b971d5/attachment-0001.ksh>
More information about the Gcc
mailing list