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

Missing max_atomic_width in spec. #172

Closed
m-ou-se opened this issue Jul 19, 2020 · 1 comment
Closed

Missing max_atomic_width in spec. #172

m-ou-se opened this issue Jul 19, 2020 · 1 comment

Comments

@m-ou-se
Copy link

m-ou-se commented Jul 19, 2020

The avr-unknown-unknown target now specifies no max_atomic_width, which means it falls back to the pointer size of 16 bits:

    let target = rustc_target::spec::TargetTriple::from_triple("avr-unknown-unknown");
    println!("{}", rustc_target::spec::Target::search(&target).unwrap().max_atomic_width());
    // output: 16

Is this correct? As far as I know, AVR does not have any (atomic) 16-bit operations.

@m-ou-se
Copy link
Author

m-ou-se commented Sep 5, 2020

Moved to rust repository: rust-lang#76363

@m-ou-se m-ou-se closed this as completed Sep 5, 2020
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

No branches or pull requests

1 participant