Patch: use BB_GLOBAL_CONST where applicable

Luís Marques luismarques at lowrisc.org
Mon Jun 17 12:30:21 UTC 2019


On Thu, Jun 6, 2019 at 7:19 PM Denys Vlasenko <vda.linux at googlemail.com> wrote:
> Can you experiment with LLVM and find a definition of SET_PTR_TO_GLOBALS()
> which works for it?

I did not find any correct solution for this other than disabling the
optimization for Clang/LLVM.

> ..and the way it's done now, it simply kills the optimization.
> Sad. I much prefer to retain it.

Happy. It used not to work with Clang *at all*. Now at least it works.
The optimization is not disabled for GCC, so there is no known regression.

> Please send your patches with git send-email. Your current email
> contains unicode chars, hence gmail exports it in base64,
> which "patch" too does not grok.

I have done so. Thanks.


More information about the busybox mailing list