[gfortran,patch] Don't call library function for string copying, take 2

Richard Guenther richard.guenther@gmail.com
Tue Jul 4 14:51:00 GMT 2006


On 7/4/06, François-Xavier Coudert <fxcoudert@gmail.com> wrote:
> :ADDPATCH fortran:
>
> Attached patch is the second take on PR fortran/28163. Instead of
> generating calls to libgfortran copy_string, we emit the code
> directly. As my previous mails showed, the size impact is minimal
> since the code emitted is small. There is a huge (positive)
> performance impact of this on at least one of the polyhedron
> benchmarks, aermod.
>
> The differences with my first version of the patch are:
>   -- I propose to remove the copy_string function from libgfortran,
> since it's not used anywhere else

You need to bump the .so version of libgfortran if you do this (maybe we
have done so for 4.2 compared to 4.1.x already).

Richard.



More information about the Fortran mailing list