aboutsummaryrefslogtreecommitdiff
path: root/libbb/const_hack.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* win32: make the clang build less crashyRon Yorston2024-01-031-0/+10
| | | | | | | | | | | | | busybox-w32 binaries built using clang crashed so frequently that they were pretty much unusable. The main issue seems to be with assignments to the structures containing global variables which are used in most applets. Upstream commit 5156b2455 (Make const ptr assign as function call in clang) addresses this, but is insufficient for the build on Windows. Extend the idea to the ASSIGN_CONST_PTR() macro too. Costs 32-80 bytes in the gcc build.
* Make const ptr assign as function call in clangYU Jincheng2021-10-091-0/+16
- This can act as memory barrier in clang to avoid read before assign of a const ptr Signed-off-by: LoveSy <shana@zju.edu.cn> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>