Skip to content

PR for llvm/llvm-project#63483 #684

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

Merged
merged 1 commit into from
Sep 11, 2023
Merged

PR for llvm/llvm-project#63483 #684

merged 1 commit into from
Sep 11, 2023

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Sep 4, 2023

Whilst Clang does not use these, recent GCC does, and so on systems such
as FreeBSD that wish to use compiler-rt as the system runtime library
but also wish to support building programs with GCC these interfaces are
needed.

This is a light adaptation of the code committed to GCC by Sebastian Pop
<[email protected]>, relicensed with permission for use in compiler-rt.

Fixes llvm/llvm-project#63483

Reviewed By: sebpop, MaskRay

Differential Revision: https://reviews.llvm.org/D158536

(cherry picked from commit 4bb2416d42eb593c44bbeb765e1b8641a58f853c)
@llvmbot
Copy link
Member Author

llvmbot commented Sep 4, 2023

@sebpop @web-flow What do you think about merging this PR to the release branch?

@jrtc27
Copy link
Contributor

jrtc27 commented Sep 5, 2023

@MaskRay

@MaskRay
Copy link
Member

MaskRay commented Sep 6, 2023

LGTM

@tru
Copy link
Contributor

tru commented Sep 11, 2023

Is this safe enough for RC4?

@jrtc27
Copy link
Contributor

jrtc27 commented Sep 11, 2023

This solely adds new functions (BARRIER is #define'ed to nothing for MODEL != 5, all the previous models), which are only used when combined with GCC 13(?)+ on aarch64 when using __sync atomics, and without which you will fail to link.

@tru tru merged commit 2b0dad9 into release/17.x Sep 11, 2023
@tru tru deleted the llvm-issue63483 branch September 11, 2023 07:07
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.

compiler-rt: __aarch64_*_sync functions not available
4 participants