musl: restore lock skipping for mostly-singlethreaded programs, and related patches
[openwrt/openwrt.git] / toolchain / musl / patches / 500-0003-cut-down-size-of-some-libc-struct-members.patch
1 From f12888e9eb9eed60cc266b899dcafecb4752964a Mon Sep 17 00:00:00 2001
2 From: Rich Felker <dalias@aerifal.cx>
3 Date: Fri, 22 May 2020 17:25:38 -0400
4 Subject: [PATCH 3/4] cut down size of some libc struct members
5
6 these are all flags that can be single-byte values.
7 ---
8 src/internal/libc.h | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11 --- a/src/internal/libc.h
12 +++ b/src/internal/libc.h
13 @@ -18,9 +18,9 @@ struct tls_module {
14 };
15
16 struct __libc {
17 - int can_do_threads;
18 - int threaded;
19 - int secure;
20 + char can_do_threads;
21 + char threaded;
22 + char secure;
23 int threads_minus_1;
24 size_t *auxv;
25 struct tls_module *tls_head;