[PATCH] D41813: [builtins] Enable CRT_HAS_128BIT for MSVC
Loo Rong Jie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 7 18:22:30 PST 2018
rongjiecomputer created this revision.
rongjiecomputer added a reviewer: rnk.
Herald added subscribers: Sanitizers, aheejin.
When __int128 is used, Clang will generate calls to builtin functions like __udivti3 etc.. For Clang + Mingw, these functions can be linked from libgcc.a. For Clang + MSVC, the only way to get these functions is from clang_rt.builtins-<arch>.lib after enabling CRT_HAS_128BIT.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D41813
Files:
lib/builtins/int_types.h
Index: lib/builtins/int_types.h
===================================================================
--- lib/builtins/int_types.h
+++ lib/builtins/int_types.h
@@ -60,7 +60,8 @@
}s;
} udwords;
-#if (defined(__LP64__) || defined(__wasm__) || defined(__mips64))
+#if (defined(__LP64__) || defined(__wasm__) || defined(__mips64) || \
+ defined(_MSC_VER))
#define CRT_HAS_128BIT
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41813.128887.patch
Type: text/x-patch
Size: 396 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180108/8d59a3d2/attachment.bin>
More information about the llvm-commits
mailing list