[Bug dynamic-link/27220] New: Migrate away from nested functions
i at maskray dot me
sourceware-bugzilla@sourceware.org
Wed Jan 20 19:33:17 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27220
Bug ID: 27220
Summary: Migrate away from nested functions
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
Some files use this obscure GCC feature
https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
Most of them are loader code. These instances are likely the biggest problem
preventing glibc from being built with Clang.
posix/regcomp.c
nss/makedb.c
elf/do-rel.h
elf/dynamic-link.h
elf/get-dynamic-info.h
elf/dl-reloc-static-pie.c
elf/dl-reloc.c
elf/dl-conflict.c
elf/rtld.c
sysdeps/aarch64/dl-machine.h
sysdeps/x86_64/dl-machine.h
sysdeps/powerpc/powerpc64/dl-machine.h
For many instances, migrating away from nested functions is a clear readability
win, even for GCC, e.g. a #include "dynamic-link.h" in the middle of
elf/dl-reloc.c , which uses RESOLVE_MAP/RESOLVE/RESOLVE_CONFLICT_FIND_MAP
defined above.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list