[fortran, RFC] Getting rid of unneeded functions in libgfortran

Mikael Morin morin-mikael@orange.fr
Mon Jul 10 21:28:00 GMT 2017


Hello,

Le 10/07/2017 à 20:43, Thomas Koenig a écrit :
> Hello world,
>
> with the bump in the libfortran version that is needed with
> Paul's patch, I think we can get rid of a few functions
> that we do not actually need any more.
>
> I think we now always inline SUM and PRODUCT. We don't do so with all
> occurrences of ANY and ALL, but we probably could (and should).
>
We don’t inline when the dim argument isn’t constant.  As far as I know, 
this is a valid albeit rare use case for the library functions.

> So, is it a worthy goal to eliminate all occurences of these
> functions from libgfortran before 8.1 comes out?
>
Yes, let’s remove what we can.  But the list of candidates is probably 
shorter than you hoped.  TRANSPOSE seems to have been removed already.
SUM, PRODUCT, ANY and ALL must stay (see above).  What else?

Mikael



More information about the Gcc-patches mailing list