From nobody Wed Dec 22 10:06:09 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5BC161905F72; Wed, 22 Dec 2021 10:06:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJpr41pVjz4YnK; Wed, 22 Dec 2021 10:06:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8E25C1B5F6; Wed, 22 Dec 2021 10:06:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BMA69Cd092306; Wed, 22 Dec 2021 10:06:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BMA69t4092305; Wed, 22 Dec 2021 10:06:09 GMT (envelope-from git) Date: Wed, 22 Dec 2021 10:06:09 GMT Message-Id: <202112221006.1BMA69t4092305@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 56de5aeb6870 - stable/12 - 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. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 56de5aeb6870e644b9306518fdf1fcc180461eba Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640167573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S1h6Iv3bS3LcuMFBXDr/pn4j2NENKNaqxHaSbjkNamA=; b=ZFaip47COCwggFi++SXbijVymfw10Mpofh77RWgHPjN8nR2oyNJ93NlzFtgIvFNhqm1p+y +rp8Sn8RZSWyfTFExkQVtWwGw8DoFDJYfdyFTM0hdo3b+AeqXprtnRAUirvn0hLkcdeHLx VJOXDcN6Us9mU9v6iz7UZab/bQ9yniv907YaFl6sv0KYhM7Rd/Nx03RSI5zWYjLJrF1pa9 yH3uhZKPp+pM6EIOLAhBnkKfuyqndKcMDEtQ4RnNKV6bTuGlO+qlUPf1+ua9CTGYIYiEwd nyMeFVzIqld0r1FlcVJAirW3BvQJ7YOS4WR3YOXW4kUtKfP9e+4EYII9ON18pw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640167573; a=rsa-sha256; cv=none; b=pUfietn3JROV8XHvAoqAfzDRp+pwJDMYNo+GefcyXJki8selC28NUNJqgwgdHm2swyKMVZ lD8PeYyvrPHZmItpfrc7MOpeMUKe4cgYrLFhxkozkGJbSJQ+BPh+ey3CmjX6R23V847P5n bfnahceEdX32/8uVkZzhRbgaVQPg4m2tizolrurDvvpHa01S4+CqYj+Xua4RZRcdAMnBd+ 952Bf+NtXpKEErKVj0VJW5SdqMCc99wt3+QTw60on8v9VPGMqbwk63/7wOBL58e3zfHuOZ HWMHT+QvlHlXmT2/ydUkKgRE2hZKzR8D2c91NV7ruEOxgAbgVlBEKEh7gVblYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=56de5aeb6870e644b9306518fdf1fcc180461eba commit 56de5aeb6870e644b9306518fdf1fcc180461eba Author: Dimitry Andric AuthorDate: 2020-08-25 19:57:11 +0000 Commit: Dimitry Andric CommitDate: 2021-12-22 10:01:13 +0000 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 (cherry picked from commit 0709bb1f4146361e7917201a2438e1b2cd36f40b) --- 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 217ea4da0049..5766e835ea38 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 @@ -131,10 +129,6 @@ SRCF+= umodti3 SRCF+= atomic .endif -.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