Date: Tue, 25 Aug 2020 19:57:11 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r364782 - head/lib/libcompiler_rt Message-ID: <202008251957.07PJvBcC099971@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Tue Aug 25 19:57:11 2020 New Revision: 364782 URL: https://svnweb.freebsd.org/changeset/base/364782 Log: 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 Modified: head/lib/libcompiler_rt/Makefile.inc Modified: head/lib/libcompiler_rt/Makefile.inc ============================================================================== --- head/lib/libcompiler_rt/Makefile.inc Tue Aug 25 19:04:54 2020 (r364781) +++ head/lib/libcompiler_rt/Makefile.inc Tue Aug 25 19:57:11 2020 (r364782) @@ -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 @@ -124,10 +122,6 @@ SRCF+= udivti3 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008251957.07PJvBcC099971>