Page MenuHomeFreeBSD

llvm-project: Fix build on devel/llvm18
AbandonedPublic

Authored by minsoochoo0122_proton.me on Apr 6 2024, 7:54 PM.
Referenced Files
Unknown Object (File)
Tue, May 21, 11:55 PM
Unknown Object (File)
Tue, May 21, 11:19 PM
Unknown Object (File)
Wed, May 15, 6:38 PM
Unknown Object (File)
Wed, May 15, 6:37 PM
Unknown Object (File)
Mon, May 6, 2:50 PM
Unknown Object (File)
Fri, Apr 26, 4:50 AM
Unknown Object (File)
Thu, Apr 25, 7:14 PM
Unknown Object (File)
Apr 19 2024, 5:45 PM

Details

Reviewers
brooks
Group Reviewers
Contributor Reviews (src)
Summary

llvm18 (especially clang) brings some breaking changes, which causes
build failure in llvm-project.

This patch brings commits from llvm-project upstream which fixes build
failure for llvm-project using devel/llvm18.

b9935bb02a50 and 966d564e43e6 fix compiler error by invalid assembly
displacement on x86_86 systems.

a4d1d5f5b54b2f93d7290588734f59ff24fc515c and
a7ac0dd624962de1ccb55f1ed1357f548477f593 replaces variable length arrays
with a custom class SimpleVLA.

There are other parts of code in openmp that still uses VLA, so -Wno-vla-cxx-extension is
added to lib/libomp/Makefile in order to suppress errors.

Test Plan

make buildworld && make buildkernel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 56944
Build 53832: arc lint + arc unit