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

François-Xavier Coudert fxcoudert@gmail.com
Tue Jul 4 14:47:00 GMT 2006


: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
  -- I have finally found the correct way to create a integer constant
of value ' ' (the space character) in the case the host and target
charsets are differents: lang_hooks.to_target_charset

Bootstrapped and regtested on i686-linux. OK for mainline?

FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy_string2.ChangeLog
Type: application/octet-stream
Size: 503 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060704/0ddba7d2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy_string2.diff
Type: text/x-patch
Size: 5745 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060704/0ddba7d2/attachment.bin>


More information about the Fortran mailing list