Closed Rahix closed 1 year ago
I think it needs to be checked whether this bug is still present in current versions. I have the suspicion that it was fixed as part of some LLVM patches related to function pointers.
We can check, but can you explain the relevance of the llvm_asm!
usages? (we can probably replicate the equivalent in current inline assembly, but I'm curious if these are just being used as "black boxes"...)
Well, essentially just as black boxes/optimization barriers. But as the issue was so unstable in what ways it manifested, I'd keep the nop
s using asm!()
.
fwiw, this has been fixed a long time ago - I think this issue can be safely closed 🙂
While playing around with async I stumbled upon an apparent miscomplation. I've tried to reduce it as much as possible and am now left with this:
Compiling and running under
simavr
, I see this code panicking:I should also note that while reducing the code, the error manifested itself in many different ways; it was not always panicking like shown above.
Meta
rustc --version --verbose
:cc @dylanmckay