Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/compiler_rt/dist/lib/builtins PR port-arm/5...



details:   https://anonhg.NetBSD.org/src/rev/da96b38cafe8
branches:  trunk
changeset: 379723:da96b38cafe8
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jun 16 05:05:03 2021 +0000

description:
PR port-arm/55897

Cherry-pick upstream commit llvm-svn: 266891:

https://github.com/llvm/llvm-project/commit/28e1b977d4694c6b3a5c4d8107570a969be71e77#diff-549f1733063df365663fe375f336034e33e16d6bf2826cd4f966045aeb136007
----
[PATCH] 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.

llvm-svn: 266891

diffstat:

 sys/external/bsd/compiler_rt/dist/lib/builtins/int_lib.h |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (16 lines):

diff -r d64c6e8a5526 -r da96b38cafe8 sys/external/bsd/compiler_rt/dist/lib/builtins/int_lib.h
--- a/sys/external/bsd/compiler_rt/dist/lib/builtins/int_lib.h  Wed Jun 16 03:56:59 2021 +0000
+++ b/sys/external/bsd/compiler_rt/dist/lib/builtins/int_lib.h  Wed Jun 16 05:05:03 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index