riscv-llvm
riscv-llvm copied to clipboard
Debug info is wrong when rustc expects a function to be inlined but llvm doesn't inline it
| 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
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.