From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28558 invoked by alias); 12 Jan 2007 16:16:12 -0000 Received: (qmail 28515 invoked by uid 48); 12 Jan 2007 16:15:58 -0000 Date: Fri, 12 Jan 2007 16:16:00 -0000 Subject: [Bug middle-end/30447] New: Evaluate complex math functions at compile-time X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ghazi at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg01010.txt.bz2 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