aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 12:12:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 12:12:22 +0200
commitaf7169b4a70eb3f60555ced17a40780f70aaaa5c (patch)
tree1633c3306b7d538fb44b12d27ec299e8db0f35fa /coreutils
parente1a7c97ac640701973eea000007fc8b9f9dd7126 (diff)
downloadbusybox-af7169b4a70eb3f60555ced17a40780f70aaaa5c.tar.gz
clang/llvm 9 fix - do not eliminate a store to a fake "const"
This is *much* better (9 kbytes better) than dropping "*const" optimization trick. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index 868ffbecb..a08986130 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -411,7 +411,7 @@ extern struct test_statics *const test_ptr_to_statics;
#define leaving (S.leaving )
#define INIT_S() do { \
- (*(struct test_statics**)&test_ptr_to_statics) = xzalloc(sizeof(S)); \
+ (*(struct test_statics**)not_const_pp(&test_ptr_to_statics)) = xzalloc(sizeof(S)); \
barrier(); \
} while (0)
#define DEINIT_S() do { \