From nobody Sun Dec 01 12:54:37 2024 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 4Y1RhG1zgbz5fbNq; Sun, 01 Dec 2024 12:54:38 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y1RhG07MRz4Pvs; Sun, 1 Dec 2024 12:54:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733057678; 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=VotE7R5+z4ciZKzRnAg+VYLMN11ueeZJWM6O4OBHa5Q=; b=X0eOI6PtmdqUDcAF8eEILJouGU6J7kgi8SAPNdZOS2TGqdehAl87t9AnsLO30mM7bujBAE xHbxCuiSkqJbb0UPnebA9OoefbAz8kecfVF6ecvosJmEwvsn8QRRQZOZIPX/NdtPQKU8c8 AaQ0grz5o/qbnY78w7Oi14tRt0NaY7gWEzo6sZX8HoC76q3TG6cH975rx6AYfpZulmEIJ/ imqxNC9ArgS4C9JTSnagAmv3edwFwUJD6ItCQ2XlE+B5IVbYq5Sj+ysBVG+1mzWUHCWlko P1mwM8W+fSXWQxMd3WCzLCW21G1qDnIT1fGm0wpeNERaSWKD9SgPNuxCCB4QXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733057678; 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=VotE7R5+z4ciZKzRnAg+VYLMN11ueeZJWM6O4OBHa5Q=; b=PReRwz7S/Lqg944bLATQuCL4pvPuTpAvNE2YjvB8JhXKUlvyxhMv7ysMwLvMFeM8tqU9PW fWPyvqA/Hk/P/jdo0Mwnb6JQl6htgQcDotbQ1CffSSDUpRVYWiaS3wBonmExwLhqzmxqNJ usxIKC4Szu2QCvd8vhbj8GyOt6QLkM2Z/P3lB/+UPrHhJYKjsjRzJOpyJJnoGUtx52VuTE Pmtea3dVe5dtlQvBd9rXAnmF8zSLQq948z+ftU7VMXLr9YTY7LIA/ZlIeulgqjXgj+6L/5 eC3o+23KoKkLxd5RB2yZ0ODG/haFCs86qixWBCzZkQgI/G0UCw43qj1pNuCykA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733057678; a=rsa-sha256; cv=none; b=gPpEafKjHyr9wG36iBJAfSS/Q/SSzVJ0hOXDbwuADBW/BV8WeETrUKbduVqyb7krw7LTra cisbvQyyufL0Ja6otl2PonBRq6vNA2oFPRKaVMbJa03ez4/6lUcRtfxR3NjvMUV3pZZU1o ayGFxWkrauv61Zsiz90O3+nFgSZKwjQLnMrpee4DnvoGvVyYH0hPhiQQbuossso7ZhmnPF GWZj2gQvX5V5fyBDYL5bYYoJrZewnVZwtqcNW4jsD5ld84hxPl1SLhwhyx9knBIMoc89Ru oIPplrtiQv1XCVkluEtout/CZwZlF5qS2CncZUPtGZgvZPubpEvCL1U/cvahuw== 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 4Y1RhF6sSjztNX; Sun, 1 Dec 2024 12:54:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B1CsbAg094772; Sun, 1 Dec 2024 12:54:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B1CsbiH094769; Sun, 1 Dec 2024 12:54:37 GMT (envelope-from git) Date: Sun, 1 Dec 2024 12:54:37 GMT Message-Id: <202412011254.4B1CsbiH094769@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: a58eb6653223 - stable/13 - libzpool: add workaround for MIPS-specific llvm bug compiling arc.c 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/13 X-Git-Reftype: branch X-Git-Commit: a58eb6653223494cce02faf85d3a49110743b9fc Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a58eb6653223494cce02faf85d3a49110743b9fc commit a58eb6653223494cce02faf85d3a49110743b9fc Author: Dimitry Andric AuthorDate: 2024-12-01 12:52:42 +0000 Commit: Dimitry Andric CommitDate: 2024-12-01 12:52:42 +0000 libzpool: add workaround for MIPS-specific llvm bug compiling arc.c This works around an assertion in llvm's shrink wrapping analysis pass, when compiling arc.c for mips and mips64: Assertion failed: (PhysReg.isPhysical() && "Unallocated register?!"), function useOrDefCSROrFI, file /usr/src/contrib/llvm-project/llvm/lib/CodeGen/ShrinkWrap.cpp, line 341. The bug will also be submitted upstream. Direct commit to stable/13, since MIPS support was removed in 14.0. --- cddl/lib/libzpool/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cddl/lib/libzpool/Makefile b/cddl/lib/libzpool/Makefile index 38490d9cff71..cd9f893c426f 100644 --- a/cddl/lib/libzpool/Makefile +++ b/cddl/lib/libzpool/Makefile @@ -265,4 +265,12 @@ CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith CFLAGS.zstd.c+= -fno-tree-vectorize CFLAGS.zstd.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} +.include + +.if ${MACHINE_CPUARCH} == "mips" && \ + ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000 +# Work around MIPS-specific llvm bug in the Shrink Wrapping analysis pass +CFLAGS.arc.c+= -mllvm -enable-shrink-wrap-region-split=false +.endif + .include