-
Notifications
You must be signed in to change notification settings - Fork 1.2k
linux-musl-s390x: Add __psw_t/fprefset_t/*context_t #4726
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
Conversation
|
|
||
| pub struct fpregset_t { | ||
| pub fpc: u32, | ||
| __pad: u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this padding in musl sources?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't explicit, but the compiler ends up adding it anyway. Many other structs in libc are defined with explicit padding. I don't know the official policy (either way it should ideally be enforced in CI)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, padding fields are only used when they are also defined in the libc headers
a44f9fd to
2d668ab
Compare
tgross35
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
https://elixir.bootlin.com/musl/v1.2.5/source/arch/s390x/bits/signal.h (backport <rust-lang#4726>) (cherry picked from commit c7702ef)
https://elixir.bootlin.com/musl/v1.2.5/source/arch/s390x/bits/signal.h (backport <rust-lang#4726>) (cherry picked from commit c7702ef)
https://elixir.bootlin.com/musl/v1.2.5/source/arch/s390x/bits/signal.h (backport <#4726>) (cherry picked from commit c7702ef)
Description
Define signal-related structs according to musl-libc. These structs are already mentioned in libc-test/semver/linux-s390x.txt, so it makes sense to define the for musl, not just for glibc.
Sources
https://elixir.bootlin.com/musl/v1.2.5/source/arch/s390x/bits/signal.h
Checklist
Relevant tests inno changelibc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI