[compiler-rt] r266891 - builtins: remove use of __attribute__((pcs("aapcs"))) on Windows

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 10:43:40 PDT 2016


Author: compnerd
Date: Wed Apr 20 12:43:40 2016
New Revision: 266891

URL: http://llvm.org/viewvc/llvm-project?rev=266891&view=rev
Log:
builtins: remove use of __attribute__((pcs("aapcs"))) on Windows

Windows does not honour the __attribute__((pcs)) on ARM.  Although this will
result in ABI mismatches, compiler-rt should largely be unneeded for resolving
dependencies as we generate MS ABI compliant library calls now for the most
part.

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=266891&r1=266890&r2=266891&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/int_lib.h (original)
+++ compiler-rt/trunk/lib/builtins/int_lib.h Wed Apr 20 12:43:40 2016
@@ -35,11 +35,7 @@
 # define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
 #else
 # define ARM_EABI_FNALIAS(aeabi_name, name)
-# if defined(__arm__) && defined(_WIN32) && (!defined(_MSC_VER) || defined(__clang__))
-#   define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
-# else
-#   define COMPILER_RT_ABI
-# endif
+# define COMPILER_RT_ABI
 #endif
 
 #ifdef _MSC_VER




More information about the llvm-commits mailing list