[fortran, patch] Handle POW/CPOW builtins for all floating-point types

Tobias Burnus burnus@net-b.de
Wed Sep 1 07:53:00 GMT 2010


  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;



More information about the Fortran mailing list