[compiler-rt] r238056 - builtins: mark functions as aapcs on Windows
Saleem Abdulrasool
compnerd at compnerd.org
Fri May 22 14:47:24 PDT 2015
Author: compnerd
Date: Fri May 22 16:47:24 2015
New Revision: 238056
URL: http://llvm.org/viewvc/llvm-project?rev=238056&view=rev
Log:
builtins: mark functions as aapcs on Windows
Windows does not use AAPCS, but rather AAPCS-VFP, and thus the functions which
are assumed to be AAPCS will cause invalid argument setup. Ensure that the
functions are marked as AAPCS.
Modified:
compiler-rt/trunk/lib/builtins/int_lib.h
Modified: compiler-rt/trunk/lib/builtins/int_lib.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/int_lib.h?rev=238056&r1=238055&r2=238056&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/int_lib.h (original)
+++ compiler-rt/trunk/lib/builtins/int_lib.h Fri May 22 16:47:24 2015
@@ -28,7 +28,11 @@
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
#else
# define ARM_EABI_FNALIAS(aeabi_name, name)
-# define COMPILER_RT_ABI
+# if defined(__arm__) && defined(_WIN32)
+# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
+# else
+# define COMPILER_RT_ABI
+# endif
#endif
#if defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE))
More information about the llvm-commits
mailing list