[PATCH]: PR29335 use MPFR for builtin sincos

Richard Guenther richard.guenther@gmail.com
Wed Nov 1 14:57:00 GMT 2006

On 11/1/06, Kaveh R. GHAZI <ghazi@caip.rutgers.edu> wrote:
> This patch uses MPFR for builtin sincos.
> For a call like sincos(0.0,s,c), where "s" and "c" are pointers, I
> transform this into e.g. "(void)(*s=0.0,*c=1.0)".
> Bootstrapped on sparc-sun-solaris2.10, no regressions.  The new testcases
> all pass.  In the transcendental accuracy testsuite, there is no sincos
> test, however I was able to shoehorn the values used in the sin and cos
> tests through builtin sincos and they all get "perfect" results.
> Okay for mainline?

This might transform a valid gimple statement into a non-gimple one - did
you verify that the various places that might fold the statement correctly
handle this case?


More information about the Gcc-patches mailing list