This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] Handle POW/CPOW builtins for all floating-point types
- From: Tobias Burnus <burnus at net-b dot de>
- To: FX <fxcoudert at gmail dot com>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 01 Sep 2010 09:50:47 +0200
- Subject: Re: [fortran, patch] Handle POW/CPOW builtins for all floating-point types
- References: <550FFCCF-E4EB-4731-8683-B03BF3E71539@gmail.com>
On 08/31/2010 12:20 AM, FX wrote:
Extension of my previous front-end patch for builtins, which was missing POW/CPOW (and integer pow, i.e. powi and _gfortran_pow_r*_i*).
Bootstrapped and regtesting on x86_64-linux (a really really clean tree this time, I promise!)
OK to commit?
OK. Thanks for the patch.
Tobias
PS: You wrote for the RFC patch:
"Array intrinsics *do not work at all*. This is a limitation of the
array descriptor structure, which I cannot overcome by myself."
Wouldn't it work to use a patch as the following - or have I missed some
fine print? I think we have enough bits to fit 8 DTYPEs - and without
the following patch I only count 7.
Index: gcc/fortran/libgfortran.h
===================================================================
--- gcc/fortran/libgfortran.h (revision 160548)
+++ gcc/fortran/libgfortran.h (working copy)
@@ -130,7 +130,8 @@
GFC_DTYPE_REAL,
GFC_DTYPE_COMPLEX,
GFC_DTYPE_DERIVED,
- GFC_DTYPE_CHARACTER
+ GFC_DTYPE_CHARACTER,
+ GFC_DTYPE_FLOAT128
}
dtype;