This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Use mpc_pow in the fortran frontend
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: "Steve Kargl" <sgk at troutmask dot apl dot washington dot edu>
- Cc: "Tobias Burnus" <burnus at net-b dot de>, <fortran at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 8 Jul 2009 17:56:25 -0700
- Subject: Re: [PATCH]: Use mpc_pow in the fortran frontend
- References: <Pine.GSO.4.58.0906270909250.2271@caipclassic.rutgers.edu> <4A463C06.4070300@net-b.de> <5FB644CBAB754D119AD498AC02560906@glap> <20090709004452.GA52973@troutmask.apl.washington.edu>
From: "Steve Kargl" <sgk@troutmask.apl.washington.edu>
On Thu, Jul 02, 2009 at 10:24:11AM -0700, Kaveh R. Ghazi wrote:
I believe C99 fallback implementations are included in
libgfortran/intrinsics/c99_functions.c, so that shouldn't be a blocker.
Kaveh,
Fortran does not define the complex versions of sinh/cosh/tanh
(didn't check for tan) until the draft for Fortran 2008. A quick
inspection of intrinsics.c suggests that gfortran currently doesn't
support these functions. Adding the basic support would be fairly
straight forward, but it will require fallback implementations of
of the functions for the runtime library.
Do the fallback functions in libgfortran's c99_functions.c not suffice?