From nobody Thu Jun 01 19:17:08 2023 X-Original-To: toolchain@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 4QXG903mP9z4YycF for ; Thu, 1 Jun 2023 19:17:08 +0000 (UTC) (envelope-from bugzilla-noreply@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 4QXG902hH7z3wjC for ; Thu, 1 Jun 2023 19:17:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685647028; 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: in-reply-to:in-reply-to:references:references; bh=dYe0uTfIR1twwM/uSwiehO3Tu43s/Lk8Pdx9j+qyfuc=; b=hfAnMi+0rxm0KRe07MmmnoXfnkoJd1Xs0mu+2iYM3gxn/wElWhWnIB9jgnxwqGB4Nh0Jbc /4XM8B3MzChYxmW0huI5S/x3V2EqdoRXyVhj6A2+JnYEsl2J2IyfOsDuZkwXgqrSUcOvjG Yx1Yqy/yZl5+AsFbEhlleeFK9TNayr7iOT5gAgxyDIaBu4RDrdDAQ8VuplOfcDzcrM+WTO 2QHWk8hBc+DKrb88xEZAmo8alK/A031SKUhi5J6naQpShDcQireRSLLHaO+Mrvz+3ofoDx NmS4Qjtk+2TKS6yU+3wJLvsK+M21bu0CCTRs2YWdRXzj5otxA8G8I+ZMzrqqPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685647028; a=rsa-sha256; cv=none; b=MUwDbrys58I+5HHIHZjLdnbw6KGYfhXTiIIwhFEezrGXT5gv6C4ulEfYwK1jnVKO1mDlvP MR6Ut+FBoZW1c1WEqIlSQpvGiTxZeF/gcWFEdZem1aUKdofGqZ2hI5pgRqUQEUmoXDCrRy uUl1G1Ot1x6vx9I321WbXr0JsGrnwNGBDcmMCD4EaG61MiOEwyll+IvMcv2gCXnRNdY6M0 bNIuft1d32tHhVFsKKRx293cqY7bZyYz8lagw21Y0bRRQPuL8egjSL4EpduXicObBY7c5a bi55CdWztJdeiDrmzEqN1IU6EDAHaE2c/o6yZPd3O/y/PXW8Mj0VHv3mRCWuTQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4QXG901fmdzTxW for ; Thu, 1 Jun 2023 19:17:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 351JH8iC086010 for ; Thu, 1 Jun 2023 19:17:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 351JH80i086009 for toolchain@FreeBSD.org; Thu, 1 Jun 2023 19:17:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 271624] emulators/qmc2: clang crashes during build on {12.4,13.1}-arm64-quarterly Date: Thu, 01 Jun 2023 19:17:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271624 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D3cc4f10db0feca9d54bbfc615328b317a= 5c6b4c8 commit 3cc4f10db0feca9d54bbfc615328b317a5c6b4c8 Author: Dimitry Andric AuthorDate: 2023-05-29 14:27:58 +0000 Commit: Dimitry Andric CommitDate: 2023-06-01 19:15:31 +0000 Apply clang fixes for crashes compiling ARM/AArch64 CRC intrinsics Merge commit 069ecd0c6e2c from llvm-project (by Fangrui Song): [ARM] Check target feature support for __builtin_arm_crc* `__builtin_arm_crc*` requires the target feature crc which is availab= le on armv8 and above. Calling the fuctions for armv7 leads to a SelectionDAG cra= sh. ``` % clang -c --target=3Darmv7-unknown-linux-gnueabi -c a.c fatal error: error in backend: Cannot select: intrinsic %llvm.arm.crc= 32b PLEASE submit a bug report to ... ``` Add `TARGET_BUILTIN` and define required features for these builtins = to report an error in `CodeGenFunction::checkTargetFeatures`. The proble= m is quite widespread. I will add `TARGET_BUILTIN` for more builtins later. Fix https://github.com/llvm/llvm-project/issues/57802 Differential Revision: https://reviews.llvm.org/D134127 Merge commit b2d7a0dcf1ff from llvm-project (by Fangrui Song): [AArch64] Check target feature support for __builtin_arm_crc* This is the AArch64 counterpart of D134127. Daniel Kiss will change more `BUILTIN` to `TARGET_BUILTIN`. Fix #57802 Note that programs attempting to use ARM/AArch64 CRC intrinsics, when they are not supported by the targeted CPU, will still receive a regular compilation error (instead of a fatal backend error) similar to: 7zCrc.c:4:10: error: '__builtin_arm_crc32b' needs target feature crc return __builtin_arm_crc32b(a, b); ^ Reported by: Alastair Hogge PR: 271624 MFC after: 3 days (cherry picked from commit 8792c03886d9e6df10fbac825819603dc059c7ea) .../clang/include/clang/Basic/BuiltinsAArch64.def | 20 ++++++++++++----= ---- .../clang/include/clang/Basic/BuiltinsARM.def | 20 ++++++++++++----= ---- .../llvm-project/clang/lib/Basic/Targets/AArch64.cpp | 2 ++ contrib/llvm-project/clang/lib/Basic/Targets/ARM.cpp | 2 ++ 4 files changed, 28 insertions(+), 16 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=