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

Debug info is wrong when rustc expects a function to be inlined but llvm doesn't inline it #58

Open
dvc94ch opened this issue Mar 30, 2018 · 1 comment

Comments

@dvc94ch
Copy link

dvc94ch commented Mar 30, 2018

opt-level inline-threshold number of errors
0 2000 5243
0 255 3967
0 0 3012
3 0 309
3 default 346
3 2000 255

Errors where measured with:
llvm-dwarfdump -verify | grep error | wc -l

@dvc94ch
Copy link
Author

dvc94ch commented Mar 31, 2018

Giving up for now - I'm getting various compilation errors that seem completely arbitrary.

gdb stepi stepping in an infinite loop for now visible reason (I'm guessing debuginfo). Now it suddenly started emiting binaries without .text section. I also had empty bss sections causing jumps to nowhere, etc. One problem after the other. This #56 would really help to enable the rustc test suite to track down the problems.

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