From nobody Sat Feb 3 18:23:43 2024 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 4TS1HM74rnz587yl for ; Sat, 3 Feb 2024 18:23:43 +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 4TS1HM3f9Sz4nxd for ; Sat, 3 Feb 2024 18:23:43 +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=1706984623; 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=E/FTuFJXxoB6ys7CNhYhk7H+yYQkRlefstmPsmKVd9U=; b=R9PQEik8nDPM+p5/Ox/nN+SpkIzB8/HjZ7X+qUI0HnY9lPP3/UrQvQHpfHKwhkp76TbAbx lMcLuGc/Qq3oV1FJ1m4BVrspz/g0TEv++Win22Y3aaJl4AakwtXtqxWAachOr5Ul7SgXMR pCHxOzXABKO1Q91dU//3CUo10fn5VmBOirKp4joGaoiUoKvx26uNBq6TMArgRXsujEL3/m VWcbH48yrbhi0DLh0nsbC09u4Ucdxzt6yxsYuoBwXqWJuxOT04wLz3zVC/EOkNd/JKha1C CJtByf9RoakTbXRmfPKuaRBROfuhsiZ3+zpwzIlJvM2Nw+kCkr2hYgyfIECsgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706984623; a=rsa-sha256; cv=none; b=WQuigahnrKv/7K4E8BYK3lijAa8qaQ6y4Vnr77XWbDAG3XknJ29cXQ8jSiYHOegQnlCbDT hcDBUYcRCmbMX12J5wVaFQdBNAf8MdxJmjnwQDDxjAEweCynRZGxhMJ9SX7h3tIk7zHea6 NMUOVABg01b2jpU07kBPvwVQSW98jNdfRMJUUfJpDiz4JQP0Qg1oUhziBuGvSYCotdGomw 9+GbxiOCaD3ypwAGcg2mDnzqZI6fUpPVVsSFsagnlyy97xiIvbDY6K3I6e16Czsa3B8nN1 SQawqThY1ndZKv/x+/+/zE2dUTyM9EyZRE7nAgkGMlOcco3z0dwiqQcspkhRvw== 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 4TS1HM2k9TzPSt for ; Sat, 3 Feb 2024 18:23:43 +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 413INhcl076816 for ; Sat, 3 Feb 2024 18:23:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 413INhQP076815 for toolchain@FreeBSD.org; Sat, 3 Feb 2024 18:23:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 276794] The PPC-specific header /usr/lib/clang/16/include/ppc_wrappers/mmintrin.h asks to define the x86-specific variable NO_WARN_X86_INTRINSICS (port audio/surge-synthesizer-lv2 on powerpc64le) Date: Sat, 03 Feb 2024 18:23:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276794 --- Comment #2 from Mark Millard --- Going in a different direction: the comments indicate the code is designed to help with converting x86_64 code to powerpc64/powerpc64le and it is deliberately using x86-specific defines: #ifndef NO_WARN_X86_INTRINSICS /* This header file is to help porting code using Intel intrinsics explicitly from x86_64 to powerpc64/powerpc64le. Since PowerPC target doesn't support native 64-bit vector type, we typedef __m64 to 64-bit unsigned long long in MMX intrinsics, which works well for _si64 and some _pi32 operations. For _pi16 and _pi8 operations, it's better to transfer __m64 into 128-bit PowerPC vector first. Power8 introduced direct register move instructions which helps for more efficient implementation. It's user's responsibility to determine if the results of such port are acceptable or further changes are needed. Please note that much code using Intel intrinsics CAN BE REWRITTEN in more portable and efficient standard C or GNU C extensions with 64-bit scalar operations, or 128-bit SSE/Altivec operations, which are more recommended. */ #error=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable th= is error." #endif "PPC-specific headers aren't supposed to recommend to set x86-specific defines." looks to be just wrong about this code. (I'm not claiming that the code works overall.) --=20 You are receiving this mail because: You are the assignee for the bug.=