diff options
Diffstat (limited to 'recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch')
-rw-r--r-- | recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch | 45 |
1 files changed, 36 insertions, 9 deletions
diff --git a/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch b/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch index 949a1ea..2dc16b2 100644 --- a/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch +++ b/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch | |||
@@ -12,10 +12,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
12 | include/llvm/Analysis/TargetLibraryInfo.def | 12 ++++++++++++ | 12 | include/llvm/Analysis/TargetLibraryInfo.def | 12 ++++++++++++ |
13 | 1 file changed, 12 insertions(+) | 13 | 1 file changed, 12 insertions(+) |
14 | 14 | ||
15 | diff --git a/include/llvm/Analysis/TargetLibraryInfo.def b/include/llvm/Analysis/TargetLibraryInfo.def | 15 | Index: git/include/llvm/Analysis/TargetLibraryInfo.def |
16 | index b2a593d..834f257 100644 | 16 | =================================================================== |
17 | --- a/include/llvm/Analysis/TargetLibraryInfo.def | 17 | --- git.orig/include/llvm/Analysis/TargetLibraryInfo.def |
18 | +++ b/include/llvm/Analysis/TargetLibraryInfo.def | 18 | +++ git/include/llvm/Analysis/TargetLibraryInfo.def |
19 | @@ -531,6 +531,9 @@ TLI_DEFINE_STRING_INTERNAL("fmodl") | 19 | @@ -531,6 +531,9 @@ TLI_DEFINE_STRING_INTERNAL("fmodl") |
20 | TLI_DEFINE_ENUM_INTERNAL(fopen) | 20 | TLI_DEFINE_ENUM_INTERNAL(fopen) |
21 | TLI_DEFINE_STRING_INTERNAL("fopen") | 21 | TLI_DEFINE_STRING_INTERNAL("fopen") |
@@ -36,7 +36,17 @@ index b2a593d..834f257 100644 | |||
36 | /// int fseeko64(FILE *stream, off64_t offset, int whence) | 36 | /// int fseeko64(FILE *stream, off64_t offset, int whence) |
37 | TLI_DEFINE_ENUM_INTERNAL(fseeko64) | 37 | TLI_DEFINE_ENUM_INTERNAL(fseeko64) |
38 | TLI_DEFINE_STRING_INTERNAL("fseeko64") | 38 | TLI_DEFINE_STRING_INTERNAL("fseeko64") |
39 | @@ -591,6 +597,9 @@ TLI_DEFINE_STRING_INTERNAL("ftell") | 39 | @@ -576,6 +582,9 @@ TLI_DEFINE_STRING_INTERNAL("fsetpos") |
40 | TLI_DEFINE_ENUM_INTERNAL(fstat) | ||
41 | TLI_DEFINE_STRING_INTERNAL("fstat") | ||
42 | /// int fstat64(int filedes, struct stat64 *buf) | ||
43 | +#ifdef fstat64 | ||
44 | +#undef fstat64 | ||
45 | +#endif | ||
46 | TLI_DEFINE_ENUM_INTERNAL(fstat64) | ||
47 | TLI_DEFINE_STRING_INTERNAL("fstat64") | ||
48 | /// int fstatvfs(int fildes, struct statvfs *buf); | ||
49 | @@ -591,6 +600,9 @@ TLI_DEFINE_STRING_INTERNAL("ftell") | ||
40 | TLI_DEFINE_ENUM_INTERNAL(ftello) | 50 | TLI_DEFINE_ENUM_INTERNAL(ftello) |
41 | TLI_DEFINE_STRING_INTERNAL("ftello") | 51 | TLI_DEFINE_STRING_INTERNAL("ftello") |
42 | /// off64_t ftello64(FILE *stream) | 52 | /// off64_t ftello64(FILE *stream) |
@@ -46,7 +56,27 @@ index b2a593d..834f257 100644 | |||
46 | TLI_DEFINE_ENUM_INTERNAL(ftello64) | 56 | TLI_DEFINE_ENUM_INTERNAL(ftello64) |
47 | TLI_DEFINE_STRING_INTERNAL("ftello64") | 57 | TLI_DEFINE_STRING_INTERNAL("ftello64") |
48 | /// int ftrylockfile(FILE *file); | 58 | /// int ftrylockfile(FILE *file); |
49 | @@ -1056,6 +1065,9 @@ TLI_DEFINE_STRING_INTERNAL("times") | 59 | @@ -711,6 +723,9 @@ TLI_DEFINE_STRING_INTERNAL("logl") |
60 | TLI_DEFINE_ENUM_INTERNAL(lstat) | ||
61 | TLI_DEFINE_STRING_INTERNAL("lstat") | ||
62 | /// int lstat64(const char *path, struct stat64 *buf); | ||
63 | +#ifdef lstat64 | ||
64 | +#undef lstat64 | ||
65 | +#endif | ||
66 | TLI_DEFINE_ENUM_INTERNAL(lstat64) | ||
67 | TLI_DEFINE_STRING_INTERNAL("lstat64") | ||
68 | /// void *malloc(size_t size); | ||
69 | @@ -927,6 +942,9 @@ TLI_DEFINE_STRING_INTERNAL("sscanf") | ||
70 | TLI_DEFINE_ENUM_INTERNAL(stat) | ||
71 | TLI_DEFINE_STRING_INTERNAL("stat") | ||
72 | /// int stat64(const char *path, struct stat64 *buf); | ||
73 | +#ifdef stat64 | ||
74 | +#undef stat64 | ||
75 | +#endif | ||
76 | TLI_DEFINE_ENUM_INTERNAL(stat64) | ||
77 | TLI_DEFINE_STRING_INTERNAL("stat64") | ||
78 | /// int statvfs(const char *path, struct statvfs *buf); | ||
79 | @@ -1056,6 +1074,9 @@ TLI_DEFINE_STRING_INTERNAL("times") | ||
50 | TLI_DEFINE_ENUM_INTERNAL(tmpfile) | 80 | TLI_DEFINE_ENUM_INTERNAL(tmpfile) |
51 | TLI_DEFINE_STRING_INTERNAL("tmpfile") | 81 | TLI_DEFINE_STRING_INTERNAL("tmpfile") |
52 | /// FILE *tmpfile64(void) | 82 | /// FILE *tmpfile64(void) |
@@ -56,6 +86,3 @@ index b2a593d..834f257 100644 | |||
56 | TLI_DEFINE_ENUM_INTERNAL(tmpfile64) | 86 | TLI_DEFINE_ENUM_INTERNAL(tmpfile64) |
57 | TLI_DEFINE_STRING_INTERNAL("tmpfile64") | 87 | TLI_DEFINE_STRING_INTERNAL("tmpfile64") |
58 | /// int toascii(int c); | 88 | /// int toascii(int c); |
59 | -- | ||
60 | 1.8.3.1 | ||
61 | |||