diff options
Diffstat (limited to 'main/llvm/llvm-musl.patch')
-rw-r--r-- | main/llvm/llvm-musl.patch | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/main/llvm/llvm-musl.patch b/main/llvm/llvm-musl.patch index b5a1c09ed9..581128c00e 100644 --- a/main/llvm/llvm-musl.patch +++ b/main/llvm/llvm-musl.patch @@ -9,8 +9,8 @@ // On linux we have a weird situation. The stderr/out/in symbols are both // macros and global variables because of standards requirements. So, we ---- a/utils/unittest/googletest/gtest.cc (revision 170294) -+++ b/utils/unittest/googletest/gtest.cc (working copy) +--- a/utils/unittest/googletest/src/gtest.cc ++++ b/utils/unittest/googletest/src/gtest.cc @@ -120,6 +120,7 @@ #if GTEST_CAN_STREAM_RESULTS_ @@ -58,17 +58,6 @@ toascii, /// double trunc(double x); ---- a/lib/ExecutionEngine/JIT/JIT.cpp -+++ b/lib/ExecutionEngine/JIT/JIT.cpp -@@ -68,7 +68,7 @@ extern "C" void LLVMLinkInJIT() { - } - - // Determine whether we can register EH tables. --#if (defined(__GNUC__) && !defined(__ARM_EABI__) && \ -+#if (defined(__GLIBC__) && !defined(__ARM_EABI__) && \ - !defined(__USING_SJLJ_EXCEPTIONS__)) - #define HAVE_EHTABLE_SUPPORT 1 - #else --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -268,7 +268,7 @@ void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) { @@ -133,9 +122,9 @@ --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp -@@ -1271,30 +1271,6 @@ bool FunctionAttrs::inferPrototypeAttributes(Function &F) { - setDoesNotCapture(F, 1); - setDoesNotCapture(F, 2); +@@ -1599,32 +1599,6 @@ bool FunctionAttrs::inferPrototypeAttributes(Function &F) { + setOnlyReadsMemory(F, 1); + setOnlyReadsMemory(F, 2); break; - case LibFunc::fopen64: - if (FTy->getNumParams() != 2 || @@ -147,6 +136,8 @@ - setDoesNotAlias(F, 0); - setDoesNotCapture(F, 1); - setDoesNotCapture(F, 2); +- setOnlyReadsMemory(F, 1); +- setOnlyReadsMemory(F, 2); - break; - case LibFunc::fseeko64: - case LibFunc::ftello64: @@ -164,4 +155,3 @@ case LibFunc::fstat64: case LibFunc::fstatvfs64: if (FTy->getNumParams() != 2 || !FTy->getParamType(1)->isPointerTy()) - |