[PATCH] D26183: [compiler-rt] builtins: Allow building windows arm functions for mingw

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 05:34:56 PDT 2016


mstorsjo created this revision.
mstorsjo added reviewers: rengolin, compnerd.
mstorsjo added a subscriber: llvm-commits.
Herald added subscribers: mgorny, dberris, aemerson.

When building with clang/LLVM in MSVC mode, the msvcrt libraries contain these functions.

When building in a mingw environment, we need to provide them somehow, e.g. via compiler-rt.

The aeabi divmod functions work in the same way as the corresponding __rt_*div* functions for windows, but their parameters are swapped. The functions for converting float to integer and vice versa are the same as their aeabi equivalents, only with different function names.


https://reviews.llvm.org/D26183

Files:
  lib/builtins/CMakeLists.txt
  lib/builtins/arm/aeabi_idivmod.S
  lib/builtins/arm/aeabi_ldivmod.S
  lib/builtins/arm/aeabi_uidivmod.S
  lib/builtins/arm/aeabi_uldivmod.S
  lib/builtins/fixdfdi.c
  lib/builtins/fixsfdi.c
  lib/builtins/fixunsdfdi.c
  lib/builtins/fixunssfdi.c
  lib/builtins/floatdidf.c
  lib/builtins/floatdisf.c
  lib/builtins/floatundidf.c
  lib/builtins/floatundisf.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26183.76543.patch
Type: text/x-patch
Size: 6267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161101/679abba0/attachment.bin>


More information about the llvm-commits mailing list