aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/misc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-06-19 15:13:53 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-06-19 15:13:53 +0000
commit4349775a30600906f5811ba7c743a5c22bdb3d7d (patch)
treea603f337ecccb290e61a1766664dd5ec30b5bb58 /gcc/fortran/misc.c
parent7a907deeeb0b17ed332eb6e3a181a35b1873daf5 (diff)
downloadgcc-4349775a30600906f5811ba7c743a5c22bdb3d7d.zip
gcc-4349775a30600906f5811ba7c743a5c22bdb3d7d.tar.gz
gcc-4349775a30600906f5811ba7c743a5c22bdb3d7d.tar.bz2
compiler: optimize string concatenations
runtime.concatstring{2,3,4,5} are just wrappers of concatstrings. These wrappers don't provide any benefit, at least in the C calling convention we use, where passing arrays by value isn't an efficient thing. Change it to always use concatstrings. Also, the cap field of the slice passed to concatstrings is not necessary. So change it to pass a pointer and a length directly, which is more efficient than passing a slice header by value. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/182539 From-SVN: r272476
Diffstat (limited to 'gcc/fortran/misc.c')
0 files changed, 0 insertions, 0 deletions