Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
329f4c1 to
90d6dd8
Compare
So this is basically fixing a bug in #156112. @Jules-Bertholet does this look reasonable? @beetrees could you add a test for the case that was buggy? |
Which ones?
Yes. It's not clear to me what this fixes in practice, but this PR's logic is a lot more clear/consistent/future-proof than my version, which is reason enough to merge it. |
90d6dd8 to
cc109c8
Compare
#164628 is fixing the 64-bit MIPS ABI. The ABI treats
I've added a |
|
OK, so this doesn't fix any ABI bugs directly, but it's a necessary prerequisite to the fixes in #164628. That makes sense, thanks 👍 |
cc109c8 to
35832da
Compare
35832da to
697baa3
Compare
697baa3 to
3cb376f
Compare
|
☔ The latest upstream changes (presumably #166140) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
The ABI layout handling of trivial ABI currently only checks that the type is a 1-ZST and doesn't contain any
repr(C)types: however the documentation for trivial ABIs states that any array with a non-trivial element type is itself non-trivial. This means that the current ABI code considers types like[u8; 0]to be trivial even though they are not - this PR fixes it to match the documentation. This isn't particularly important for arguments/returns as C doesn't allow plain arrays in the argument/return positions, but it is important in other places. Found by @chenx97 in #164628. Split out from #166170.r? @bjorn3