aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-08-25 19:57:11 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-08-25 19:57:11 +0000
commit0709bb1f4146361e7917201a2438e1b2cd36f40b (patch)
treed01bae6acc6170c1f933b3c16724ae59e955b32c
parent78ec71bd867321affd5f08fa1a0f35d9a9d07f74 (diff)
downloadsrc-0709bb1f4146361e7917201a2438e1b2cd36f40b.tar.gz
src-0709bb1f4146361e7917201a2438e1b2cd36f40b.zip
After r364753, there should be no need to suppress -Watomic-alignment
warnings anymore for compiler-rt's atomic.c. This occurred because the IS_LOCK_FREE_8 macro was not correctly defined to 0 for mips, and this caused the compiler to emit a runtime call to __atomic_is_lock_free(), and that triggers the warning. MFC after: 2 weeks X-MFC-With: r364753
Notes
Notes: svn path=/head/; revision=364782
-rw-r--r--lib/libcompiler_rt/Makefile.inc6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc
index ef00f8a5649d..617be44c0096 100644
--- a/lib/libcompiler_rt/Makefile.inc
+++ b/lib/libcompiler_rt/Makefile.inc
@@ -1,7 +1,5 @@
# $FreeBSD$
-.include <bsd.compiler.mk>
-
CRTARCH= ${MACHINE_CPUARCH:C/amd64/x86_64/}
CRTSRC= ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins
@@ -125,10 +123,6 @@ SRCF+= umoddi3
SRCF+= umodsi3
SRCF+= umodti3
-.if "${COMPILER_TYPE}" == "clang"
-CFLAGS.atomic.c+= -Wno-atomic-alignment
-.endif
-
# Avoid using SSE2 instructions on i386, if unsupported.
.if ${MACHINE_CPUARCH} == "i386" && empty(MACHINE_CPU:Msse2)
SRCS+= floatdidf.c