Skip to content

Keep unstable target features for asm feature checking #99155

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

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Jul 11, 2022

Inline assembly uses the target features to determine which registers
are available on the current target. However it needs to be able to
access unstable target features for this.

Fixes #99071

Amanieu added 2 commits July 11, 2022 14:26
Inline assembly uses the target features to determine which registers
are available on the current target. However it needs to be able to
access unstable target features for this.

Fixes rust-lang#99071
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 11, 2022
@rustbot
Copy link
Collaborator

rustbot commented Jul 11, 2022

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

Some changes occurred in compiler/rustc_codegen_gcc

cc @antoyo

@rust-highfive
Copy link
Contributor

r? @lcnr

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 11, 2022
@lcnr
Copy link
Contributor

lcnr commented Jul 11, 2022

looks good to me, but i don't feel like i 100% understand what's going on. reassigning to get another pair of eyes here

r? rust-lang/compiler

@rust-highfive rust-highfive assigned davidtwco and unassigned lcnr Jul 11, 2022
@luqmana
Copy link
Member

luqmana commented Jul 12, 2022

LGTM. relnotes tag since this will reject code currently (erroneously) accepted on stable?

@Amanieu Amanieu added the relnotes Marks issues that should be documented in the release notes of the next release. label Jul 12, 2022
@Amanieu
Copy link
Member Author

Amanieu commented Jul 12, 2022

I've added the relnotes tag. Draft notes:

On the thumbv6m-none-eabi target, some incorrect asm! statements were erroneously accepted if they used the high registers (r8 to r14) as an input/output operand.

@davidtwco
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 13, 2022

📌 Commit dfe68ee has been approved by davidtwco

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 13, 2022
@bors bors merged commit 68cfdbb into rust-lang:master Jul 13, 2022
@rustbot rustbot added this to the 1.64.0 milestone Jul 13, 2022
@workingjubilee workingjubilee added the A-inline-assembly Area: Inline assembly (`asm!(…)`) label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-inline-assembly Area: Inline assembly (`asm!(…)`) relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nightly stops to accept registers r8-15 on thumbv6m
8 participants