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: [fortran, patch] Handle POW/CPOW builtins for all floating-point types


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;


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