This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libgfortran,patch] C99 complex cleanup


On Fri, Sep 23, 2005 at 10:08:02PM +0200, FX Coudert wrote:
> Attached patch change the way we implement C99 complex fallback 
> functions, removing them from the generated files and adding them to 
> c99_functions.c. I took this opportunity to add macro definitions such as:
> 
> #ifndef HAVE_FOO
> #define HAVE_FOO
> extern double foo (double)
> #endif
> 
> so that we can rely on the HAVE_FOO macros even for fallback functions 
> (this was not the case before).
> 
> Bootstrapped and regtested on i686-linux and i386-freebsd.
> OK for mainline, and 4.0 when it reopens?
> 
> FX

> 2005-09-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
> 
> 	* c99_protos.h: Add prototypes for C99 complex functions.
> 	* libgfortran.h: Include complex.h before c99_protos.h.
> 	* intrinsics/c99_functions.c: Define HAVE_ macros for the
> 	fallback functions we provide.
> 	(cabsf, cabs, cabsl, cargf, carg, cargl, cexpf, cexp, cexpl,
> 	clogf, clog, clogl, clog10f, clog10, clog10l, cpowf, cpow, cpowl,
> 	cqsrtf, csqrt, csqrtl, csinhf, csinh, csinhl, ccoshf, ccosh,
> 	ccoshl, ctanhf, ctanh, ctanhl, csinf, csin, csinl, ccosf, ccos,
> 	ccosl, ctanf, ctan, ctanl): New fallback functions.
> 	* Makefile.am (gfor_math_trig_c, gfor_math_trig_obj,
> 	gfor_specific_c, gfor_cmath_src, gfor_cmath_obj): Remove.
> 	* Makefile.in: Regenerate.
> 	* configure.ac: Remove checks for csin. Add checks for all C99
> 	complex functions.
> 	* config.h.in: Regenerate.
> 	* configure: Regenerate.
> 	* aclocal.m4: Regenerate.

Unless Paul B has any objections, I think this patch is OK.

Paul?

-- 
steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]