-
Notifications
You must be signed in to change notification settings - Fork 13.6k
compiler-rt: Exclude sync_fetch_and_* for any pre-ARMv6 targets #139411
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
Open
kraj
wants to merge
1
commit into
llvm:main
Choose a base branch
from
kraj:kraj/compiler-rt-armv5te
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
May 23, 2025
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Upstream-Status: Submitted [llvm#139411] Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
May 23, 2025
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Upstream-Status: Submitted [llvm#139411] Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
May 23, 2025
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Upstream-Status: Submitted [llvm#139411] Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
May 23, 2025
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Upstream-Status: Submitted [llvm#139411] Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
May 29, 2025
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Upstream-Status: Submitted [llvm#139411] Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
May 29, 2025
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Upstream-Status: Submitted [llvm#139411] Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
May 30, 2025
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g. -march=armv5te -mfloat-abi=soft or -march=armv7-a -mfloat-abi=hard compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name. which ends up choosing `arm` as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins using arm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ... Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t set(armv4t_SOURCES ${arm_min_SOURCES}) set(armv5te_SOURCES ${arm_min_SOURCES}) This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for Upstream-Status: Submitted [llvm#139411] Signed-off-by: Khem Raj <raj.khem@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sometimes builds may happen where ABI is not indidated by host_triple e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang for all arm32 cross compilers, it passed the ABI flags on cmdline in addition. e.g.
-march=armv5te -mfloat-abi=soft
or
-march=armv7-a -mfloat-abi=hard
compiler-rt's makery tries to add arm to COMPILER_RT_SUPPORTED_ARCH deducing it from triple name.
which ends up choosing
arm
as one of compiler-rt arch to build for. This arch is however using armv7+ defaults and then tried to build sync builtins usingarm-poky-linux-gnueabi-clang -march=armv5te -mfloat-abi=soft ...
Which does not compile correctly, in such cases it should simply remove the sync builtins from list of things to build similar to what is done when we use armv4t or armv5t
set(armv4t_SOURCES ${arm_min_SOURCES})
set(armv5te_SOURCES ${arm_min_SOURCES})
This lets compiler-rt build for arm architectures without depending upong compiler triple, but instead of poking the compiler for what it is building for