Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upICE while using inline assembly #36907
Comments
This comment has been minimized.
This comment has been minimized.
|
(I'm not getting an ICE but a crash), backtrace on OS X /
|
TimNN
added
I-crash
A-LLVM
regression-from-stable-to-nightly
and removed
regression-from-stable-to-nightly
labels
Oct 2, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Indeed, it appears as if any ZST in the position of |
This comment has been minimized.
This comment has been minimized.
|
Indeed, need to cast The best we can do is some sanity checking for |
This comment has been minimized.
This comment has been minimized.
|
(I wanted to add |
This comment has been minimized.
This comment has been minimized.
|
Should be A-inline-assembly. |
eddyb
added
the
A-inline-assembly
label
Oct 2, 2016
This comment has been minimized.
This comment has been minimized.
|
I get no crash (or abort) when using LLVM compiled in Debug mode with assertions enabled, rustc 7b33876 on x86_64 Linux. The generated code looks correct. I assume the ZST issue is the cause, but it sounds like there's an LLVM bug involved as well. |
TimNN
referenced this issue
Dec 6, 2016
Closed
LLVM assertion when trying to use fn items as inline assembly parameters #38183
This comment has been minimized.
This comment has been minimized.
|
Copying my example from the duplicate issue I raised (which doesn't really add anything except rust playground links): This is fine:
https://is.gd/2hOCz4
This is not (removed
https://is.gd/09bozZ
|
SethDusek commentedOct 2, 2016
So I was messing around with the inline assembler, when I ran into an ICE
Code: https://gist.github.com/9dfeeb4d7cda8aeb1d25c7ea89ee277e