-
-
Notifications
You must be signed in to change notification settings - Fork 768
riscv: more llvm_asm --> asm #2319
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
Conversation
: | ||
: | ||
: "volatile"); | ||
unreachable_unchecked() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. Applying the noreturn
option should have the same effect -- it tells the compiler that we can never fall out of the asm block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks fine. Pretty minor changes.
5024b6d
to
3ed7879
Compare
whoops, I thought that import was unused bc I missed the gap in the diff. I put it back to how it was before. |
bors r+ |
Merge conflict. |
bors r+ |
77e54c9
to
274d38c
Compare
Canceled. |
rebased to fix merge conflict |
bors r+ |
Build failed:
|
the bors macos build was cancelled bc the mac github actions are finicky but everything else passed so I am going to manually merge. |
Pull Request Overview
This pull request converts several more uses of llvm_asm --> asm, for a few risc-v platforms. I specifically chose the instances contained within
#[naked]
functions, which are disallowed in newer versions of rustc.Testing Strategy
This pull request was tested by compiling only!
TODO or Help Wanted
testing plz
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.