mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
Toolchain: Regenerate patches using the latest format rules
This commit is contained in:
parent
453323f3c1
commit
cb2f0d9861
19 changed files with 87 additions and 107 deletions
|
@ -14,7 +14,7 @@ process's resource usage information.
|
|||
3 files changed, 13 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/llvm/include/llvm/Support/SwapByteOrder.h b/llvm/include/llvm/Support/SwapByteOrder.h
|
||||
index e8612ba66..f0109f4b3 100644
|
||||
index e8612ba6654b5d950b2eb570c23ebbb79d4dc035..f0109f4b30e83cefc745e0575deaf89b1e51c35a 100644
|
||||
--- a/llvm/include/llvm/Support/SwapByteOrder.h
|
||||
+++ b/llvm/include/llvm/Support/SwapByteOrder.h
|
||||
@@ -22,7 +22,7 @@
|
||||
|
@ -27,7 +27,7 @@ index e8612ba66..f0109f4b3 100644
|
|||
#elif defined(_AIX)
|
||||
#include <sys/machine.h>
|
||||
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
|
||||
index 2ae7c6dc4..bf173117b 100644
|
||||
index 2ae7c6dc47e071a7801c346a6d40e0db45e49beb..bf173117bb9be72902597569dc94ff81efe5af38 100644
|
||||
--- a/llvm/lib/Support/Unix/Path.inc
|
||||
+++ b/llvm/lib/Support/Unix/Path.inc
|
||||
@@ -112,7 +112,7 @@ typedef uint_t uint;
|
||||
|
@ -50,7 +50,7 @@ index 2ae7c6dc4..bf173117b 100644
|
|||
// statvfs::f_basetype contains a null-terminated FSType name of the mounted target
|
||||
StringRef fstype(Vfs.f_basetype);
|
||||
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
|
||||
index 089342030..3ffe064e5 100644
|
||||
index 089342030b97e178d749a54b2d43ae5338b5b097..3ffe064e5f0de06ac76c34b218e44fe7a8d9eaf6 100644
|
||||
--- a/llvm/lib/Support/Unix/Program.inc
|
||||
+++ b/llvm/lib/Support/Unix/Program.inc
|
||||
@@ -336,7 +336,7 @@ static bool Execute(ProcessInfo &PI, StringRef Program,
|
||||
|
|
|
@ -9,7 +9,7 @@ Subject: [PATCH] [Triple] Add triple for SerenityOS
|
|||
2 files changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h
|
||||
index ba4584dc6..7249849e8 100644
|
||||
index ba4584dc60faf1b9a170493bbe3075c08d5ff2a8..56e793cc0c0afa7c5f6bdd2e019a61dc518964f4 100644
|
||||
--- a/llvm/include/llvm/ADT/Triple.h
|
||||
+++ b/llvm/include/llvm/ADT/Triple.h
|
||||
@@ -219,7 +219,8 @@ public:
|
||||
|
@ -35,7 +35,7 @@ index ba4584dc6..7249849e8 100644
|
|||
bool isOSBinFormatELF() const {
|
||||
return getObjectFormat() == Triple::ELF;
|
||||
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
|
||||
index 6696d158b..5292164d7 100644
|
||||
index 6696d158b2c1ae3d31f0819880ec0814f74a3a16..5292164d7aaed944c934a89fe3e809fc427218eb 100644
|
||||
--- a/llvm/lib/Support/Triple.cpp
|
||||
+++ b/llvm/lib/Support/Triple.cpp
|
||||
@@ -234,6 +234,7 @@ StringRef Triple::getOSTypeName(OSType Kind) {
|
||||
|
|
|
@ -14,14 +14,14 @@ protection and position-independent code by default.
|
|||
clang/lib/Driver/Driver.cpp | 4 +
|
||||
clang/lib/Driver/ToolChain.cpp | 2 +
|
||||
clang/lib/Driver/ToolChains/Arch/X86.cpp | 1 +
|
||||
clang/lib/Driver/ToolChains/Serenity.cpp | 337 +++++++++++++++++++++++
|
||||
clang/lib/Driver/ToolChains/Serenity.cpp | 336 +++++++++++++++++++++++
|
||||
clang/lib/Driver/ToolChains/Serenity.h | 99 +++++++
|
||||
8 files changed, 468 insertions(+)
|
||||
8 files changed, 467 insertions(+)
|
||||
create mode 100644 clang/lib/Driver/ToolChains/Serenity.cpp
|
||||
create mode 100644 clang/lib/Driver/ToolChains/Serenity.h
|
||||
|
||||
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
|
||||
index 2d6ef9984..06abf1dfd 100644
|
||||
index 2d6ef998485ae1404e561dc12f962ce1bef2996d..06abf1dfdd5b91c2a0051363e2f04ec9b3f3285f 100644
|
||||
--- a/clang/lib/Basic/Targets.cpp
|
||||
+++ b/clang/lib/Basic/Targets.cpp
|
||||
@@ -151,6 +151,8 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple,
|
||||
|
@ -52,7 +52,7 @@ index 2d6ef9984..06abf1dfd 100644
|
|||
return new X86_64TargetInfo(Triple, Opts);
|
||||
}
|
||||
diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h
|
||||
index a814f681b..927eeb664 100644
|
||||
index a814f681b1468c7628daf6f5c9c6d723155821b0..927eeb66446a451b3cd9b08d9cdcfd6f8d4064ba 100644
|
||||
--- a/clang/lib/Basic/Targets/OSTargets.h
|
||||
+++ b/clang/lib/Basic/Targets/OSTargets.h
|
||||
@@ -1013,6 +1013,24 @@ public:
|
||||
|
@ -81,7 +81,7 @@ index a814f681b..927eeb664 100644
|
|||
} // namespace clang
|
||||
#endif // LLVM_CLANG_LIB_BASIC_TARGETS_OSTARGETS_H
|
||||
diff --git a/clang/lib/Driver/CMakeLists.txt b/clang/lib/Driver/CMakeLists.txt
|
||||
index 18c9b2d04..ed7178e51 100644
|
||||
index 18c9b2d042f6c6e27382a4c72119250533e93482..ed7178e510584a465e695f64716bd399f3b131db 100644
|
||||
--- a/clang/lib/Driver/CMakeLists.txt
|
||||
+++ b/clang/lib/Driver/CMakeLists.txt
|
||||
@@ -74,6 +74,7 @@ add_clang_library(clangDriver
|
||||
|
@ -93,7 +93,7 @@ index 18c9b2d04..ed7178e51 100644
|
|||
ToolChains/SPIRV.cpp
|
||||
ToolChains/TCE.cpp
|
||||
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
|
||||
index 3f29afd35..184336551 100644
|
||||
index 3f29afd359718a1c21e9c9911f0e6ad5f1002a3a..18433655172bc90a97a24b619f11a3d9eba0d327 100644
|
||||
--- a/clang/lib/Driver/Driver.cpp
|
||||
+++ b/clang/lib/Driver/Driver.cpp
|
||||
@@ -45,6 +45,7 @@
|
||||
|
@ -115,7 +115,7 @@ index 3f29afd35..184336551 100644
|
|||
TC = std::make_unique<toolchains::Solaris>(*this, Target, Args);
|
||||
break;
|
||||
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
|
||||
index 7a4319ea6..8db07d9dd 100644
|
||||
index 7a4319ea680f97dde074b21afa2ee6f75c350091..8db07d9dd0754bffeddf00afe365fe7d011cc602 100644
|
||||
--- a/clang/lib/Driver/ToolChain.cpp
|
||||
+++ b/clang/lib/Driver/ToolChain.cpp
|
||||
@@ -452,6 +452,8 @@ StringRef ToolChain::getOSLibName() const {
|
||||
|
@ -128,7 +128,7 @@ index 7a4319ea6..8db07d9dd 100644
|
|||
return getOS();
|
||||
}
|
||||
diff --git a/clang/lib/Driver/ToolChains/Arch/X86.cpp b/clang/lib/Driver/ToolChains/Arch/X86.cpp
|
||||
index cd7c014fa..004185d28 100644
|
||||
index cd7c014faa5e0d503adc9f2c30b83b3efbb7e315..004185d28816b8e8bb903612aa053cb883524fc5 100644
|
||||
--- a/clang/lib/Driver/ToolChains/Arch/X86.cpp
|
||||
+++ b/clang/lib/Driver/ToolChains/Arch/X86.cpp
|
||||
@@ -113,6 +113,7 @@ std::string x86::getX86TargetCPU(const Driver &D, const ArgList &Args,
|
||||
|
@ -141,7 +141,7 @@ index cd7c014fa..004185d28 100644
|
|||
// Fallback to p4.
|
||||
diff --git a/clang/lib/Driver/ToolChains/Serenity.cpp b/clang/lib/Driver/ToolChains/Serenity.cpp
|
||||
new file mode 100644
|
||||
index 000000000..6fc664a05
|
||||
index 0000000000000000000000000000000000000000..4fdf45a19eb2704d00a03e7b2f34f87f63a0a074
|
||||
--- /dev/null
|
||||
+++ b/clang/lib/Driver/ToolChains/Serenity.cpp
|
||||
@@ -0,0 +1,336 @@
|
||||
|
@ -483,7 +483,7 @@ index 000000000..6fc664a05
|
|||
+}
|
||||
diff --git a/clang/lib/Driver/ToolChains/Serenity.h b/clang/lib/Driver/ToolChains/Serenity.h
|
||||
new file mode 100644
|
||||
index 000000000..d414f8366
|
||||
index 0000000000000000000000000000000000000000..d414f836601c8ea8b43d64e9b111bffa2b71cd54
|
||||
--- /dev/null
|
||||
+++ b/clang/lib/Driver/ToolChains/Serenity.h
|
||||
@@ -0,0 +1,99 @@
|
||||
|
|
|
@ -12,7 +12,7 @@ This patch should be removed when we implement proper TLS support.
|
|||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
|
||||
index 3704ed858..cc7b59809 100644
|
||||
index 3704ed8586682677882acb8e1b82bfc14b1d07a5..cc7b598090a8795e5906abc7341f798be7dd638f 100644
|
||||
--- a/clang/lib/Driver/ToolChains/Clang.cpp
|
||||
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
|
||||
@@ -6029,7 +6029,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
|
|
|
@ -24,7 +24,7 @@ LibC, namely:
|
|||
create mode 100644 libcxx/include/__support/serenity/xlocale.h
|
||||
|
||||
diff --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt
|
||||
index f7c2d99e7..8d3cb754d 100644
|
||||
index f7c2d99e78b08ff823b9d510a8608ebf50031b82..8d3cb754ddf4c599708b2be38fab1574ce3a4923 100644
|
||||
--- a/libcxx/include/CMakeLists.txt
|
||||
+++ b/libcxx/include/CMakeLists.txt
|
||||
@@ -495,6 +495,7 @@ set(files
|
||||
|
@ -36,7 +36,7 @@ index f7c2d99e7..8d3cb754d 100644
|
|||
__support/solaris/wchar.h
|
||||
__support/solaris/xlocale.h
|
||||
diff --git a/libcxx/include/__config b/libcxx/include/__config
|
||||
index 8c2f7614a..c7ebf50cb 100644
|
||||
index 8c2f7614af537e71a76cb5292d5765d6ff8cd279..c7ebf50cb5ebb3a96029cd9a8a38d836cf19a01e 100644
|
||||
--- a/libcxx/include/__config
|
||||
+++ b/libcxx/include/__config
|
||||
@@ -912,7 +912,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
|
||||
|
@ -59,7 +59,7 @@ index 8c2f7614a..c7ebf50cb 100644
|
|||
# endif
|
||||
|
||||
diff --git a/libcxx/include/__locale b/libcxx/include/__locale
|
||||
index 40f9a3ff5..1c499c078 100644
|
||||
index 40f9a3ff57c22635254be654227333b2a10eca6a..1c499c078b44a49abead17ce566801b4c34733f3 100644
|
||||
--- a/libcxx/include/__locale
|
||||
+++ b/libcxx/include/__locale
|
||||
@@ -42,6 +42,8 @@
|
||||
|
@ -73,7 +73,7 @@ index 40f9a3ff5..1c499c078 100644
|
|||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
diff --git a/libcxx/include/__support/serenity/xlocale.h b/libcxx/include/__support/serenity/xlocale.h
|
||||
new file mode 100644
|
||||
index 000000000..0f939d2f6
|
||||
index 0000000000000000000000000000000000000000..0f939d2f6989e2ad617145308d079776fe87b6ce
|
||||
--- /dev/null
|
||||
+++ b/libcxx/include/__support/serenity/xlocale.h
|
||||
@@ -0,0 +1,24 @@
|
||||
|
@ -102,7 +102,7 @@ index 000000000..0f939d2f6
|
|||
+
|
||||
+#endif
|
||||
diff --git a/libcxx/include/locale b/libcxx/include/locale
|
||||
index b01c66d04..da29b7d00 100644
|
||||
index b01c66d0430f66ee74118e73296780bb864e920b..da29b7d00c709788facb049f417b6d5ccb5b70e1 100644
|
||||
--- a/libcxx/include/locale
|
||||
+++ b/libcxx/include/locale
|
||||
@@ -217,7 +217,7 @@ template <class charT> class messages_byname;
|
||||
|
@ -115,7 +115,7 @@ index b01c66d04..da29b7d00 100644
|
|||
# include <nl_types.h>
|
||||
# endif
|
||||
diff --git a/libcxx/src/include/config_elast.h b/libcxx/src/include/config_elast.h
|
||||
index bef26ec50..fbb2899b1 100644
|
||||
index bef26ec5019eccab758733eb85a1f8a6fc404968..fbb2899b1939a2f9ce7a39337c99e48c7749f7f2 100644
|
||||
--- a/libcxx/src/include/config_elast.h
|
||||
+++ b/libcxx/src/include/config_elast.h
|
||||
@@ -35,6 +35,8 @@
|
||||
|
|
|
@ -8,7 +8,7 @@ Subject: [PATCH] [compiler-rt] Build crtbegin.o/crtend.o for SerenityOS
|
|||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/compiler-rt/cmake/crt-config-ix.cmake b/compiler-rt/cmake/crt-config-ix.cmake
|
||||
index 78d1a0de1..c8622c458 100644
|
||||
index 78d1a0de1c8a7caab9d30cc8f445d5d8c485dfc0..c8622c458ea49c7ed656d2fb8d164576bba107f8 100644
|
||||
--- a/compiler-rt/cmake/crt-config-ix.cmake
|
||||
+++ b/compiler-rt/cmake/crt-config-ix.cmake
|
||||
@@ -43,7 +43,7 @@ if(NOT APPLE)
|
||||
|
|
|
@ -11,7 +11,7 @@ are built.
|
|||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
|
||||
index 56d05f5b5..8597d80d3 100644
|
||||
index 56d05f5b5fcedf692cae22ffbe10a047d5532635..8597d80d3afd3e70e1306fdb7c36963f8e6aede4 100644
|
||||
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
|
||||
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
|
||||
@@ -228,7 +228,7 @@ endif()
|
||||
|
|
|
@ -16,7 +16,7 @@ it, and the ELF sections that store version data would just waste space.
|
|||
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
|
||||
index c6b3b44a7..d43e0b4c1 100644
|
||||
index c6b3b44a76334b86167971c48891db898d01f8d0..d43e0b4c1f7796c17c524626fba59e0dfaebf4b2 100644
|
||||
--- a/clang/tools/libclang/CMakeLists.txt
|
||||
+++ b/clang/tools/libclang/CMakeLists.txt
|
||||
@@ -96,7 +96,7 @@ if(MSVC)
|
||||
|
@ -29,7 +29,7 @@ index c6b3b44a7..d43e0b4c1 100644
|
|||
set(USE_VERSION_SCRIPT ${LLVM_HAVE_LINK_VERSION_SCRIPT})
|
||||
endif()
|
||||
diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
|
||||
index 8e2b78f1b..909018753 100644
|
||||
index 8e2b78f1b85c0f2664f84e24d7588bb60e37fe77..909018753e2e09cb3a46bae35e9aaa45cc7703bc 100644
|
||||
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
|
||||
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
|
||||
@@ -39,6 +39,7 @@ if(LLVM_BUILD_LLVM_DYLIB)
|
||||
|
|
|
@ -17,7 +17,7 @@ OS ABI for userspace binaries to 3, or GNU/Linux.
|
|||
4 files changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake
|
||||
index cd45176cf..ebaa74f4b 100644
|
||||
index cd45176cf2ba761667793903daccd5f02b0e690c..ebaa74f4b5a21c20459af911e2aaede3ac3a8184 100644
|
||||
--- a/compiler-rt/cmake/config-ix.cmake
|
||||
+++ b/compiler-rt/cmake/config-ix.cmake
|
||||
@@ -756,7 +756,7 @@ else()
|
||||
|
@ -30,7 +30,7 @@ index cd45176cf..ebaa74f4b 100644
|
|||
else()
|
||||
set(COMPILER_RT_HAS_PROFILE FALSE)
|
||||
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c b/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
|
||||
index 3af61d249..ee46741d4 100644
|
||||
index 3af61d24948e7c9b6e8f3950a418516c603457a2..ee46741d47ead6c9e6931c8d3a6f16e8cd6407ae 100644
|
||||
--- a/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
|
||||
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
|
||||
@@ -8,7 +8,7 @@
|
||||
|
@ -43,7 +43,7 @@ index 3af61d249..ee46741d4 100644
|
|||
#if !defined(_AIX)
|
||||
#include <elf.h>
|
||||
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c b/compiler-rt/lib/profile/InstrProfilingPlatformOther.c
|
||||
index c7b6e842c..00fdf9ee6 100644
|
||||
index c7b6e842c9fac27b2885242d6c2cd48797bfe799..00fdf9ee6adc8e5fffda50cd981c901f02fddaf2 100644
|
||||
--- a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c
|
||||
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformOther.c
|
||||
@@ -8,7 +8,7 @@
|
||||
|
@ -56,7 +56,7 @@ index c7b6e842c..00fdf9ee6 100644
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
|
||||
index 5b7aa304b..b3b037a6f 100644
|
||||
index 5b7aa304b9876fc027e251547340df56dcf0c343..b3b037a6fdf5ea2dd749c8eb5329c9a29b44f75c 100644
|
||||
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
|
||||
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
|
||||
@@ -822,7 +822,8 @@ static bool needsRuntimeRegistrationOfSectionRange(const Triple &TT) {
|
||||
|
|
|
@ -43,14 +43,9 @@ LibC, namely:
|
|||
* The number of errno constants defined by us is given by the value of
|
||||
the `ELAST` macro.
|
||||
* Multithreading is implemented though the pthread library.
|
||||
* Aligned memory allocation is provided by the MSVCRT-like
|
||||
`_aligned_{malloc,free}` functions.
|
||||
|
||||
Adds a hack for a header not found error when including
|
||||
`<initializer_list>` inside the SerenityOS kernel.
|
||||
|
||||
Makes libc++ use its builtin character type table instead of the one
|
||||
provided by LibC as it is incomplete.
|
||||
* Use libc++'s builtin character type table instead of the one provided
|
||||
by LibC as there's a lot of extra porting work to convince the rest of
|
||||
locale.cpp to use our character type table properly.
|
||||
|
||||
## `0006-compiler-rt-Build-crtbegin.o-crtend.o-for-SerenityOS.patch`
|
||||
|
||||
|
@ -85,3 +80,4 @@ enough to linux to use the pre-canned InstrProfiling implementation.
|
|||
|
||||
Curiously, enabling profiling for the SerenityOS target changes the ELF
|
||||
OS ABI for userspace binaries to 3, or GNU/Linux.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue