[Bug 4123] the nested function in c code renders busybox not compilable under clang

bugzilla at busybox.net bugzilla at busybox.net
Thu Jan 17 22:45:55 UTC 2013


https://bugs.busybox.net/show_bug.cgi?id=4123

--- Comment #8 from Abdoulaye Walsimou Gaye <awg at embtoolkit.org> 2013-01-17 22:46:17 UTC ---
I am working on providing clang/llvm-3.2 based toolchain for ARM in next
release of EmbToolkit.
To have a working busybox binary, this nested function will not be the only
issue.
This[1] hack was also needed to overcome hacks assuming gcc is used as
compiler.

This[1] hack basically replaces:
#define barrier() __asm__ __volatile__("":::"memory")
to
#define barrier() __sync_synchronize()

and moves *const {x_}ptr_to_{y} hacks from .data to .bss section

After that you will have a working binary but of course the code size grows
(compared to binary generated by gcc)

[1]
ftp://ftp.embtoolkit.org/embtoolkit.org/busybox/1.20.2/busybox-1.20.2-0005-Embtk-const-x_-ptr_to_-y-also-make-them-work-with-clang-ll.patch

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list