Skip to content

[PowerPC] Use the 16-byte stack and vector alignment on OpenBSD - #245115

Merged
brad0 merged 1 commit into
llvm:mainfrom
brad0:ppc64-openbsd-datalayout
Nov 23, 2026
Merged

brad0 merged 1 commit into
llvm:mainfrom
brad0:ppc64-openbsd-datalayout

Conversation

@brad0

@brad0 brad0 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The 64-bit PowerPC data layout appends the stack and vector alignment
components only for AIX, Linux and FreeBSD, so powerpc64-openbsd gets a
shorter layout. OpenBSD also uses the ELFv2 ABI on powerpc64, so there
is no ABI reason for the difference. Without them the natural stack
alignment is left unspecified, which can cause unnecessary dynamic
stack realignment.

Follow-up to #232336, which did the same for FreeBSD.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ With the latest revision this PR passed the C/C++ code formatter.

The 64-bit PowerPC data layout appends the stack and vector alignment
components only for AIX, Linux and FreeBSD, so powerpc64-openbsd gets a
shorter layout. OpenBSD also uses the ELFv2 ABI on powerpc64, so there
is no ABI reason for the difference. Without them the natural stack
alignment is left unspecified, which can cause unnecessary dynamic
stack realignment.

Follow-up to llvm#232336, which did the same for FreeBSD.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brad0
brad0 force-pushed the ppc64-openbsd-datalayout branch from 3b5ba5e to 0ad6559 Compare November 23, 2026 03:21
@brad0
brad0 requested a review from RolandF77 November 23, 2026 03:25

@RolandF77 RolandF77 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brad0
brad0 merged commit 7a8d72f into llvm:main Nov 23, 2026
11 checks passed
@brad0
brad0 deleted the ppc64-openbsd-datalayout branch November 23, 2026 23:01
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 24, 2026
… r=hanna-kruppe

rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout

Updated in llvm/llvm-project#245115

@rustbot label: +llvm-main
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 24, 2026
… r=hanna-kruppe

rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout

Updated in llvm/llvm-project#245115

@rustbot label: +llvm-main
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 24, 2026
… r=hanna-kruppe

rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout

Updated in llvm/llvm-project#245115

@rustbot label: +llvm-main
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 24, 2026
… r=hanna-kruppe

rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout

Updated in llvm/llvm-project#245115

@rustbot label: +llvm-main
clarfonthey added a commit to clarfonthey/rust that referenced this pull request Nov 24, 2026
… r=hanna-kruppe

rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout

Updated in llvm/llvm-project#245115

@rustbot label: +llvm-main
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Nov 25, 2026
Rollup merge of #166494 - durin42:llvm-24-openbsd-ppc-align, r=hanna-kruppe

rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout

Updated in llvm/llvm-project#245115

@rustbot label: +llvm-main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants