[PATCH] D43106: [RISCV] Force enable int128 for compiling long double routines
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 10:26:47 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL326346: [RISCV] Force enable int128 for compiling long double routines (authored by mgrang, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D43106?vs=135940&id=136333#toc
Repository:
rL LLVM
https://reviews.llvm.org/D43106
Files:
compiler-rt/trunk/lib/builtins/CMakeLists.txt
Index: compiler-rt/trunk/lib/builtins/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/builtins/CMakeLists.txt
+++ compiler-rt/trunk/lib/builtins/CMakeLists.txt
@@ -542,6 +542,12 @@
list(APPEND BUILTIN_CFLAGS -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
endif()
+ # For RISCV32, we must force enable int128 for compiling long
+ # double routines.
+ if("${arch}" STREQUAL "riscv32")
+ list(APPEND BUILTIN_CFLAGS -fforce-enable-int128)
+ endif()
+
add_compiler_rt_runtime(clang_rt.builtins
STATIC
ARCHS ${arch}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43106.136333.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/22a61a98/attachment.bin>
More information about the llvm-commits
mailing list