Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out C++-dependent code #13

Open
andreittr opened this issue May 10, 2023 · 0 comments
Open

Factor out C++-dependent code #13

andreittr opened this issue May 10, 2023 · 0 comments

Comments

@andreittr
Copy link
Contributor

lib-compiler-rt is relied on by clang/llvm to implement various floating point operations which can come up in C code.
However, lib-compiler-rt also depends on libunwind (and, therefore, an entire C++ runtime) to implement stack unwinding, chiefly in gcc_personality_v0.c. This leads to unpleasant situations such as requiring a C++ runtime to compile musl with complex number support with clang.

This issue proposes splitting up lib-compiler-rt (via Kconfig) into (1) the pure C parts, and (2) the C++ depedent parts. This way one can make use of its arithmetic builtins without pulling in all of C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant