From nobody Sat Dec 25 11:56:33 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 C4BE918F439C; Sat, 25 Dec 2021 11:56:37 +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 4JLj825qMLz4ljJ; Sat, 25 Dec 2021 11:56:34 +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 207E716E37; Sat, 25 Dec 2021 11:56:33 +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 1BPBuXMq007665; Sat, 25 Dec 2021 11:56:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BPBuX75007664; Sat, 25 Dec 2021 11:56:33 GMT (envelope-from git) Date: Sat, 25 Dec 2021 11:56:33 GMT Message-Id: <202112251156.1BPBuX75007664@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: dd9c06d0a662 - stable/12 - lib/msun: Exclude ignored-pragmas from -Werror 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: dd9c06d0a6624424890ff0d12d0ecc238a4be42d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640433395; 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=z1UE+cqqQoF/eEI41DOAoglGBiYpbnjbyxdPNRwg4TE=; b=QrX38iaibVSs/FgmJuUxBqkf+LMEEki0eT3bFDfX/XT486+4hMrMAxxGODTnYVAhg7nyTw qpsdXp0Oq6HZJe0oDFjCGV7DR6nzT2n3QqF1KO6HLS5cqnhhXK3LFkDkY/4Lt3x/CDrMIR 8iY+l1ZZMvXLLLILLs7qDsiRwna8pWMBKlpLehrEochHlou6Y+aglFXhE0j3LDPhg00BSV kYuYFRqJ/qiF0BL1mCR9jxjysHbOKKtqx9X0+azYlxsAXem16qtiCCEMmw7evxM5wWIF4z fdsIEYQqr9yon1ZTZrHDAo6r5sen0xKjwVIjIGDOLk6dyu85D2a89cCf1yBvIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640433395; a=rsa-sha256; cv=none; b=bshrJk9KrxRVu+1TKGlNGsDYrn2kBy60SBykRdBr4K+EYfhiJzUpVbME5SASxPrhji4hXT 498sgZdRju17tO14474AH95yUllcORof02e2KXDSawJObpUQKkPuGXX/JExuue0K2HyuHn F3XmX7OGGN+xGKBUoYMRwVvNRF0VNJVb7YJ9ruWzw6bmB3UeidsZJ77l83qsvWyOTiRO5Z ROoQe5meWfqi8etTZ4y2Kuleyg1artbUtQnVJs+ABIhVtb6aHfFscuXmdwfxwtb3Sl+Wxk 6d8lVTEzIlQtTEPHBA0NLOGumbqqvrbBA+uiYHerlb8nZ8SYDWkGnE99oGRJ9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=dd9c06d0a6624424890ff0d12d0ecc238a4be42d commit dd9c06d0a6624424890ff0d12d0ecc238a4be42d Author: Alex Richardson AuthorDate: 2021-04-15 15:27:52 +0000 Commit: Dimitry Andric CommitDate: 2021-12-25 11:51:44 +0000 lib/msun: Exclude ignored-pragmas from -Werror This avoids build failures due to the clang 12 warning: '#pragma FENV_ACCESS' is not supported on this target - ignored Clang 12 currently emits this warning for all non-x86 architectures. While this can result in incorrect code generation (e.g. on AArch64 some exceptions are not raised as expected), this is a pre-existing issue and we should not fail the build due to this warning. Reviewed By: dim, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29743 (cherry picked from commit 168234fa67c38f898b784b3265dd77ace0b0a2f9) --- lib/msun/Makefile | 6 ++++++ lib/msun/tests/Makefile | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lib/msun/Makefile b/lib/msun/Makefile index d56b33deabea..b76dde4c1dd0 100644 --- a/lib/msun/Makefile +++ b/lib/msun/Makefile @@ -255,4 +255,10 @@ MLINKS+=trunc.3 truncf.3 trunc.3 truncl.3 HAS_TESTS= SUBDIR.${MK_TESTS}+= tests +.include +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 120000 +# Silence '#pragma FENV_ACCESS' is not supported on this target - ignored +CWARNFLAGS+= -Wno-error=ignored-pragmas +.endif + .include diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index 91d32517143f..df09831c6c6e 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -104,6 +104,12 @@ ARCH_SUBDIR= ${MACHINE_CPUARCH} # precision is. CFLAGS+= -DLDBL_PREC=${LDBL_PREC} +.include +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 120000 +# Silence '#pragma FENV_ACCESS' is not supported on this target - ignored +CWARNFLAGS+= -Wno-error=ignored-pragmas +.endif + .include .include