* Set the cpu defaults for the ARM32 architectures:

- armel: arm9e. Closes: #1056115.
    - armhf: cortex-a7.
This commit is contained in:
Matthias Klose 2023-12-02 23:27:56 +01:00
parent 34ed134da1
commit 907baf024b
3 changed files with 22 additions and 0 deletions

3
debian/changelog vendored
View File

@ -19,6 +19,9 @@ llvm-toolchain-snapshot (1:18~++20230921012857+4cf8da94198d-1~exp1) UNRELEASED;
* Restore the patch for D148945, searching /usr/lib/llvm-18/lib by default. * Restore the patch for D148945, searching /usr/lib/llvm-18/lib by default.
Addresses: #1056580. Addresses: #1056580.
* Also use the free swap to determine the number of parallel processes. * Also use the free swap to determine the number of parallel processes.
* Set the cpu defaults for the ARM32 architectures:
- armel: arm9e. Closes: #1056115.
- armhf: cortex-a7.
[ John Paul Adrian Glaubitz ] [ John Paul Adrian Glaubitz ]
* Don't install *clang_rt* on sparc and sparc64 * Don't install *clang_rt* on sparc and sparc64

18
debian/patches/arm32-defaults.diff vendored Normal file
View File

@ -0,0 +1,18 @@
--- a/llvm/lib/TargetParser/ARMTargetParser.cpp
+++ b/llvm/lib/TargetParser/ARMTargetParser.cpp
@@ -603,6 +603,15 @@ StringRef ARM::getARMCPUForArch(const ll
if (MArch == "v7k")
return "cortex-a7";
break;
+ case llvm::Triple::Linux:
+ switch (Triple.getEnvironment()) {
+ case llvm::Triple::GNUEABI:
+ return "arm9e"; // armv5te
+ case llvm::Triple::GNUEABIHF:
+ return "cortex-a7"; // armv7-a
+ default:
+ return "armv5";
+ }
default:
break;
}

View File

@ -147,3 +147,4 @@ bolt-disable-emit-relocs.patch
link-grpc.diff link-grpc.diff
libclang-major-version-only.diff libclang-major-version-only.diff
D148945-revert.diff D148945-revert.diff
arm32-defaults.diff