This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30447] New: 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: 12 Jan 2007 16:15:58 -0000
- Subject: [Bug middle-end/30447] New: Evaluate complex math functions at compile-time
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
We should evaluate complex math functions (csin, catan, etc) at compile-time if
they have constant arguments.
There is a package called MPC (available at
http://www.lix.polytechnique.fr/Labo/Andreas.Enge/Mpc.html or
http://www.loria.fr/~zimmerma/software/mpc.html) that works with MPFR and may
be suitable. At the moment in version 0.4.5, it doesn't have all of the
complex transcendental functions implemented. In fact it has only sqrt and exp
so far. But it may be extended or serve as a base for further improvements,
and one day usable by GCC.
--
Summary: Evaluate complex math functions at compile-time
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: middle-end
AssignedTo: ghazi at gcc dot gnu dot org
ReportedBy: ghazi at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30447