about summary refs log tree commit diff
path: root/sysdeps/sparc/dl-procinfo.h
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-11-02 10:07:59 -0700
committerFangrui Song <maskray@google.com>2021-11-02 10:07:59 -0700
commitfdcd177fd36c60ddc9cbc6013831413dbd83c3f9 (patch)
tree7e2cc87b0532e1e835aa890f01cf2cd9c057f658 /sysdeps/sparc/dl-procinfo.h
parentdb432f033d7714c5885838dae7d7fb3bdaa5a850 (diff)
downloadglibc-fdcd177fd36c60ddc9cbc6013831413dbd83c3f9.tar.gz
glibc-fdcd177fd36c60ddc9cbc6013831413dbd83c3f9.tar.xz
glibc-fdcd177fd36c60ddc9cbc6013831413dbd83c3f9.zip
regex: Unnest nested functions in regcomp.c
This refactor moves four functions out of a nested scope and converts
them into static always_inline functions. collseqwc, table_size,
symb_table, extra are now initialized to zero because they are passed as
function arguments.

On x86-64, .text is 16 byte larger likely due to the 4 stores.
This is nothing compared to the amount of work that regcomp has to do
looking up the collation weights, or other functions.

If the non-buildable `sysdeps/generic/dl-machine.h` doesn't count,
this patch removes the last `auto inline` usage from glibc.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/sparc/dl-procinfo.h')
0 files changed, 0 insertions, 0 deletions