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

Fix max-atomic-width target setting #72

Merged
merged 1 commit into from
Sep 18, 2020
Merged

Fix max-atomic-width target setting #72

merged 1 commit into from
Sep 18, 2020

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Sep 18, 2020

Nightly rustc throws compiler errors since upstream commit 3be40b22c834 ("Fix AtomicPtr::from_mut align check: Avoid generic arg in const expr.").

They seem to be related to some discrepancies in the alignment requirements for pointer types on AVR. While this should probably be investigated at some point, for now let's set max-atomic-width to 8 to make everything build again but still retain at least some atomic types (those aren't actual atomics but intrinsics that are lowered to critical sections for atomic access).

Nightly rustc throws compiler errors since upstream commit
3be40b22c834 ("Fix AtomicPtr::from_mut align check: Avoid
generic arg in const expr.") [1].

They seem to be related to some discrepancies in the alignment
requirements for pointer types on AVR.  While this should
probably be investigated at some point, for now let's set
`max-atomic-width` to 8 to make everything build again but
still retain at least some atomic types (those aren't actual
atomics but intrinsics that are lowered to critical sections
for atomic access).

[1]: rust-lang/rust@3be40b2
Signed-off-by: Rahix <rahix@rahix.de>
@Rahix Rahix merged commit 9ae4ef9 into master Sep 18, 2020
@Rahix Rahix deleted the fix-atomic-width branch September 18, 2020 21:54
@abusch
Copy link

abusch commented Sep 19, 2020

HI, FYI I opened this bug recently about this problem: rust-lang/rust#76833

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