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

LLVM extern (C) function declarations have a buggy behavior when it comes to exporting them #18

Open
alinalihassan opened this issue Sep 3, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed LLVM-specific Issues that are related to LLVM or the Code Generation step

Comments

@alinalihassan
Copy link
Owner

LLVM by default without optimizations seems to delete dead function declarations. If I try and mark a function as extern, there's no related flag in LLVM to mark the declaration. A good example is the exit function from base.les. It gets optimized away if it's not used, and a dummy function and call have been made, but they seem buggy too, it's not exported properly.

@alinalihassan alinalihassan added bug Something isn't working help wanted Extra attention is needed LLVM-specific Issues that are related to LLVM or the Code Generation step labels Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed LLVM-specific Issues that are related to LLVM or the Code Generation step
Projects
Status: To do
Development

No branches or pull requests

1 participant