This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30447] Evaluate complex math functions at compile-time
- From: "ghazi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2007 05:17:11 -0000
- Subject: [Bug middle-end/30447] Evaluate complex math functions at compile-time
- References: <bug-30447-578@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from ghazi at gcc dot gnu dot org 2007-01-13 05:17 -------
(In reply to comment #2)
> (In reply to comment #1)
> > We can implement the complex variants in term of the real ones in mpfr, no? I
> > don't like the idea of another build-dependency ;)
> >
> Yes, you can. gfortran does this already for several Fortran
> intrinsic functions. See fortran/simplify.c.
Yes, but think of the waste of creating all these complex functions only to
hide them inside GCC. In a perfect world, these would exist inside MPFR or MPC
and I'd have more confidence they'd have less bugs.
Sigh, in the real world I guess it'll have to be a one-off for GCC and hope I
don't hose all the corner cases. I'm not a wiz at this exact precision
calculation hooha. Hopefully someone will stop me before I shoot myself. :-)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30447