This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, RFC] Getting rid of unneeded functions in libgfortran
- From: Mikael Morin <morin-mikael at orange dot fr>
- To: Thomas Koenig <tkoenig at netcologne dot de>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 10 Jul 2017 23:27:50 +0200
- Subject: Re: [fortran, RFC] Getting rid of unneeded functions in libgfortran
- Authentication-results: sourceware.org; auth=none
- References: <8d590b03-2b7d-d9db-b8be-f812129586c7@netcologne.de>
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