From 0709bb1f4146361e7917201a2438e1b2cd36f40b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 25 Aug 2020 19:57:11 +0000 Subject: [PATCH] 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 --- lib/libcompiler_rt/Makefile.inc | 6 ------ 1 file changed, 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 - 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