-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add initial support for m68k-unknown-linux-gnu #2414
Conversation
r? @JohnTitor (rust-highfive has picked a reviewer for you, use r? to override) |
28c9d7e
to
ffc15dd
Compare
If it works fine on the platform, I could rubber-stamp this. Is the review from cc'd people complete? |
I will have to fix the remaining issues first that @jrtc27 has mentioned. I'll ping you back once we're ready. |
Make the last revision argument optional for easier local use. Change git URL for rustc_cg_gcc as it's now part of rust-lang: rust-lang/libc#2414 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Make the last revision argument optional for easier local use. Change git URL for rustc_cg_gcc as it's now part of rust-lang: rust-lang/libc#2414 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
76349f3
to
efe27af
Compare
I will have to review all the constants again before we can consider this ready-for-merge. |
@jrtc27 @JohnTitor I have updated the definitions now and they should now all be correct. |
Could someone clear the S-waiting-on-author? Thanks! |
e19a267
to
7a8bd4d
Compare
@bors r? |
r? @Amanieu |
@bors r+ |
📌 Commit 9fa467e has been approved by |
My recommendation would be to check against a m68k C toolchain: #include <stddef.h>
int foo = sizeof(max_align_t); Generate assembly code with @bors r- Let me know once you've checked the value. |
@Amanieu Perfect, thank you! That's what I was looking for! |
OK, it's 20 bytes:
Not sure how that translates into the Rust struct. Would that be: #[allow(missing_debug_implementations)]
#[repr(align(2))]
pub struct max_align_t {
priv_: [i8; 20]
} ? |
@Amanieu I think it should be correct now. The overall size is 20 bytes which can be represented by |
@bors r+ |
📌 Commit 7a027d3 has been approved by |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13 |
Build fixes for Linux/m68k This PR contains a few fixes on top of #2414 that were not previously discovered. I have verified that with these fixes applied, the libc module builds fine on Linux/m68k.
Build fixes for Linux/m68k This PR contains a few fixes on top of #2414 that were not previously discovered. I have verified that with these fixes applied, the libc module builds fine on Linux/m68k.
This adds initial support for m68k-unknown-linux-gnu to libc.
CC @ricky26 @jrtc27