Re: [PATCH 2/3] posix: Remove alloca usage on regex build_trtable

2021-01-11 Thread Adhemerval Zanella
On 08/01/2021 19:30, Paul Eggert wrote: > On 1/6/21 10:17 AM, Adhemerval Zanella wrote: >> __libc_use_alloca/alloca is replaced with malloc regardless. > > These allocations are so small that they should be put on the stack instead > of using malloc. I did that in Gnulib by installing the

Re: [PATCH 2/3] posix: Remove alloca usage on regex build_trtable

2021-01-08 Thread Paul Eggert
On 1/6/21 10:17 AM, Adhemerval Zanella wrote: __libc_use_alloca/alloca is replaced with malloc regardless. These allocations are so small that they should be put on the stack instead of using malloc. I did that in Gnulib by installing the attached patch. The idea is that the resulting

[PATCH 2/3] posix: Remove alloca usage on regex build_trtable

2021-01-06 Thread Adhemerval Zanella
__libc_use_alloca/alloca is replaced with malloc regardless. Checked on x86_64-linux-gnu. --- posix/regexec.c | 50 +++-- 1 file changed, 15 insertions(+), 35 deletions(-) diff --git a/posix/regexec.c b/posix/regexec.c index 5e22f90842..a8e9a9cd01