riscv-llvm icon indicating copy to clipboard operation
riscv-llvm copied to clipboard

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

Open dvc94ch opened this issue 7 years ago • 1 comments

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 avatar Mar 30 '18 11:03 dvc94ch

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.

dvc94ch avatar Mar 31 '18 09:03 dvc94ch