]> Savannah Git Hosting - gnulib.git/commit
careadlinkat: speedup for GCC 10 with GCC_LINT
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Aug 2020 19:39:48 +0000 (12:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Aug 2020 19:41:42 +0000 (12:41 -0700)
commit2a3468c9f263596815a3383c0157ba9a81cf2d24
tree4f14654dfa314019bc808165aa7b0b0a42dd8189
parent4f91f6ba64e0aa0f086dca61b60579e8ffe53b69
careadlinkat: speedup for GCC 10 with GCC_LINT

Inspired by a suggestion by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
* lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
(readlink_stk): New function, with most of the old careadlinkat
contents and with a new STACK_BUF arg.  Inline it in GCC 10
if GCC_LINT.
(careadlinkat): Use the new function for everything but the
stack buffer.
ChangeLog
lib/careadlinkat.c