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

Update asm blocks in workaround for framepointer clobber miscompilation #14

Merged
merged 3 commits into from
Jun 19, 2020

Conversation

cbiffle
Copy link
Collaborator

@cbiffle cbiffle commented Jun 17, 2020

wheeeee rust-lang/rust#73450

This should fix things?

In my opinion, this makes the constraints a _lot_ easier to read, and
gets us things like noreturn. (Plus, it moves us off a deprecated
feature whose days are numbered.)

asm has opinions about trying to use r11. These opinions are misguided:
rust-lang/rust#73450

However, we respect them by manually moving values in and out of r11 in
the asm sequences.
This completes the sequence of workarounds for:
rust-lang/rust#73450

r7 is the frame pointer. asm! cannot reason about clobbers of r7. It
tries to statically refuse it, but statically refuses r11 instead.

This avoids clobbering r7.
@cbiffle cbiffle requested a review from labbott June 17, 2020 21:48
@cbiffle cbiffle merged commit ee0b4ef into master Jun 19, 2020
@cbiffle cbiffle deleted the asm branch June 19, 2020 20:45
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