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

[MSP430] Update LLVM submodule to fix size and alignment of structs. #42910

Closed
wants to merge 1 commit into from

Conversation

pftbest
Copy link
Contributor

@pftbest pftbest commented Jun 26, 2017

Without this patch the struct

#[repr(C)]
struct A {
    a: u8,
}

has size 2 and alignment 2.

But MSP430 EABI dictates that such struct should have size 1 and alignment 1.

This pull request also includes changes from #42816 because they were merged in llvm earlier.

Without this patch the struct
```Rust
#[repr(C)]
struct A {
    a: u8,
}
```
has size 2 and alignment 2.

But MSP430 EABI dictates that such struct should have size 1
and alignment 1.
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@pftbest
Copy link
Contributor Author

pftbest commented Jun 26, 2017

cc @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jun 26, 2017

📌 Commit e9f98ae has been approved by alexcrichton

@carols10cents carols10cents added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jun 26, 2017
@arielb1
Copy link
Contributor

arielb1 commented Jun 27, 2017

Superseded by #42930

@bors r-

@arielb1 arielb1 closed this Jun 27, 2017
@pftbest pftbest deleted the msp430_layout branch July 23, 2019 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants