summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2015-10-29 09:26:03 +0100
committerFlorian Weimer <fweimer@redhat.com>2015-10-29 09:26:03 +0100
commit58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85 (patch)
treebf53ad2bf8249a03702408bcaca07b91ace4f6b7 /include
parent2145f97cee01140d5369a8c67dc92eacfe8e4417 (diff)
downloadglibc-58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85.tar.gz
_dl_fini: Rewrite to use VLA instead of extend_alloca
In this case, extend_alloca is used to work around the lack of deallocation on scope exit. A VLA is automatically deallocated in this way, so it is the more fitting approach. To implement this, it is necessary to eliminate the goto. In addition, this change eliminates the trivially-true assert; the assert is always skipped if nloaded > 0. * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array instead of extend_alloca. Change control flow to avoid a goto. Remove assert which is trivially always true.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions