Skip to content

callconv: fix mips64 aggregate argument passing for C FFI#148294

Merged
bors merged 1 commit intorust-lang:mainfrom
chenx97:mips64-padding-aggregate-args
Dec 10, 2025
Merged

callconv: fix mips64 aggregate argument passing for C FFI#148294
bors merged 1 commit intorust-lang:mainfrom
chenx97:mips64-padding-aggregate-args

Conversation

@chenx97
Copy link
Copy Markdown
Contributor

@chenx97 chenx97 commented Oct 30, 2025

MIPS64 needs to put a padding argument before an aggregate argument when
this argument is in an odd-number position, starting from 0, and has an
alignment of 16 bytes or higher, e.g.
void foo(int a, max_align_t b); is the same as
void foo(int a, long _padding, max_align_t b);

Loading
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants