Skip to content
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

Add "volatile" and "memory" clobber to asm! that doesn't fall through. #207

Merged
merged 1 commit into from
Nov 15, 2017
Merged

Conversation

sunfishcode
Copy link
Member

Use the "volatile" option and the "memory" clobber on inline asm that does
things like return directly, to reduce the chances of compilers rearranging
the code.

This fixes the conflict with TrapUnreachable in rust-lang/rust#45920 (comment).

Use the "volatile" option and the "memory" clobber on inline asm that does
things like return directly, to reduce the chances of compilers rearranging
the code.
@alexcrichton alexcrichton merged commit f5532b2 into rust-lang:master Nov 15, 2017
@alexcrichton
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants