diff options
Diffstat (limited to 'recipes-devtools/clang/clang/0001-remove-fopen64-fseeko64-ftello64-tmpfile64-on-musl.patch')
-rw-r--r-- | recipes-devtools/clang/clang/0001-remove-fopen64-fseeko64-ftello64-tmpfile64-on-musl.patch | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/recipes-devtools/clang/clang/0001-remove-fopen64-fseeko64-ftello64-tmpfile64-on-musl.patch b/recipes-devtools/clang/clang/0001-remove-fopen64-fseeko64-ftello64-tmpfile64-on-musl.patch deleted file mode 100644 index 76ee9a2..0000000 --- a/recipes-devtools/clang/clang/0001-remove-fopen64-fseeko64-ftello64-tmpfile64-on-musl.patch +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | From 01501b1e05e60ab5446fa12a15071049f07e3ae0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 15 Mar 2016 05:25:36 +0000 | ||
4 | Subject: [PATCH 1/2] remove fopen64/fseeko64/ftello64/tmpfile64 on musl | ||
5 | |||
6 | They are not available | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | include/llvm/Analysis/TargetLibraryInfo.def | 12 ------------ | ||
11 | lib/Transforms/IPO/InferFunctionAttrs.cpp | 25 ------------------------- | ||
12 | 2 files changed, 37 deletions(-) | ||
13 | |||
14 | diff --git a/include/llvm/Analysis/TargetLibraryInfo.def b/include/llvm/Analysis/TargetLibraryInfo.def | ||
15 | index 7798e3c..65158b8 100644 | ||
16 | --- a/include/llvm/Analysis/TargetLibraryInfo.def | ||
17 | +++ b/include/llvm/Analysis/TargetLibraryInfo.def | ||
18 | @@ -525,9 +525,6 @@ TLI_DEFINE_STRING_INTERNAL("fmodl") | ||
19 | /// FILE *fopen(const char *filename, const char *mode); | ||
20 | TLI_DEFINE_ENUM_INTERNAL(fopen) | ||
21 | TLI_DEFINE_STRING_INTERNAL("fopen") | ||
22 | -/// FILE *fopen64(const char *filename, const char *opentype) | ||
23 | -TLI_DEFINE_ENUM_INTERNAL(fopen64) | ||
24 | -TLI_DEFINE_STRING_INTERNAL("fopen64") | ||
25 | /// int fprintf(FILE *stream, const char *format, ...); | ||
26 | TLI_DEFINE_ENUM_INTERNAL(fprintf) | ||
27 | TLI_DEFINE_STRING_INTERNAL("fprintf") | ||
28 | @@ -561,9 +558,6 @@ TLI_DEFINE_STRING_INTERNAL("fseek") | ||
29 | /// int fseeko(FILE *stream, off_t offset, int whence); | ||
30 | TLI_DEFINE_ENUM_INTERNAL(fseeko) | ||
31 | TLI_DEFINE_STRING_INTERNAL("fseeko") | ||
32 | -/// int fseeko64(FILE *stream, off64_t offset, int whence) | ||
33 | -TLI_DEFINE_ENUM_INTERNAL(fseeko64) | ||
34 | -TLI_DEFINE_STRING_INTERNAL("fseeko64") | ||
35 | /// int fsetpos(FILE *stream, const fpos_t *pos); | ||
36 | TLI_DEFINE_ENUM_INTERNAL(fsetpos) | ||
37 | TLI_DEFINE_STRING_INTERNAL("fsetpos") | ||
38 | @@ -585,9 +579,6 @@ TLI_DEFINE_STRING_INTERNAL("ftell") | ||
39 | /// off_t ftello(FILE *stream); | ||
40 | TLI_DEFINE_ENUM_INTERNAL(ftello) | ||
41 | TLI_DEFINE_STRING_INTERNAL("ftello") | ||
42 | -/// off64_t ftello64(FILE *stream) | ||
43 | -TLI_DEFINE_ENUM_INTERNAL(ftello64) | ||
44 | -TLI_DEFINE_STRING_INTERNAL("ftello64") | ||
45 | /// int ftrylockfile(FILE *file); | ||
46 | TLI_DEFINE_ENUM_INTERNAL(ftrylockfile) | ||
47 | TLI_DEFINE_STRING_INTERNAL("ftrylockfile") | ||
48 | @@ -1050,9 +1041,6 @@ TLI_DEFINE_STRING_INTERNAL("times") | ||
49 | /// FILE *tmpfile(void); | ||
50 | TLI_DEFINE_ENUM_INTERNAL(tmpfile) | ||
51 | TLI_DEFINE_STRING_INTERNAL("tmpfile") | ||
52 | -/// FILE *tmpfile64(void) | ||
53 | -TLI_DEFINE_ENUM_INTERNAL(tmpfile64) | ||
54 | -TLI_DEFINE_STRING_INTERNAL("tmpfile64") | ||
55 | /// int toascii(int c); | ||
56 | TLI_DEFINE_ENUM_INTERNAL(toascii) | ||
57 | TLI_DEFINE_STRING_INTERNAL("toascii") | ||
58 | diff --git a/lib/Transforms/IPO/InferFunctionAttrs.cpp b/lib/Transforms/IPO/InferFunctionAttrs.cpp | ||
59 | index 4295a75..f6d19eb 100644 | ||
60 | --- a/lib/Transforms/IPO/InferFunctionAttrs.cpp | ||
61 | +++ b/lib/Transforms/IPO/InferFunctionAttrs.cpp | ||
62 | @@ -844,31 +844,6 @@ static bool inferPrototypeAttributes(Function &F, | ||
63 | Changed |= setOnlyReadsMemory(F, 1); | ||
64 | Changed |= setOnlyReadsMemory(F, 2); | ||
65 | return Changed; | ||
66 | - case LibFunc::fopen64: | ||
67 | - if (FTy->getNumParams() != 2 || !FTy->getReturnType()->isPointerTy() || | ||
68 | - !FTy->getParamType(0)->isPointerTy() || | ||
69 | - !FTy->getParamType(1)->isPointerTy()) | ||
70 | - return false; | ||
71 | - Changed |= setDoesNotThrow(F); | ||
72 | - Changed |= setDoesNotAlias(F, 0); | ||
73 | - Changed |= setDoesNotCapture(F, 1); | ||
74 | - Changed |= setDoesNotCapture(F, 2); | ||
75 | - Changed |= setOnlyReadsMemory(F, 1); | ||
76 | - Changed |= setOnlyReadsMemory(F, 2); | ||
77 | - return Changed; | ||
78 | - case LibFunc::fseeko64: | ||
79 | - case LibFunc::ftello64: | ||
80 | - if (FTy->getNumParams() == 0 || !FTy->getParamType(0)->isPointerTy()) | ||
81 | - return false; | ||
82 | - Changed |= setDoesNotThrow(F); | ||
83 | - Changed |= setDoesNotCapture(F, 1); | ||
84 | - return Changed; | ||
85 | - case LibFunc::tmpfile64: | ||
86 | - if (!FTy->getReturnType()->isPointerTy()) | ||
87 | - return false; | ||
88 | - Changed |= setDoesNotThrow(F); | ||
89 | - Changed |= setDoesNotAlias(F, 0); | ||
90 | - return Changed; | ||
91 | case LibFunc::fstat64: | ||
92 | case LibFunc::fstatvfs64: | ||
93 | if (FTy->getNumParams() != 2 || !FTy->getParamType(1)->isPointerTy()) | ||
94 | -- | ||
95 | 1.9.1 | ||
96 | |||