From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5A276385841E; Sat, 2 Dec 2023 23:32:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A276385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701559952; bh=cYNNnwAW+ha6t/dSOFtPvipO7OfioRRLnVCjNjFCVSU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=al/q9Cq9UqCm9uXbfSzq/VZNFFp9j0uU+tgzFzAo5vkFPihBEptTTNBHvmHjuE+S3 2lxjOe10yBi75DcrGjJfHDxwe75t8aPg8eT04Z1Cp68izZiF7ezKJGkL6wmASl1sA2 TB7OpU2TIQvlcLx3bhUrYf7SB7dmQvYIQQTLNNC0= From: "gonzalo.gadeschi at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112789] Missing clang __builtin_ctzs for short Date: Sat, 02 Dec 2023 23:32:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gonzalo.gadeschi at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112789 --- Comment #6 from gnzlbg --- Thanks for all the quick feedback! > Also clang does not even document __builtin_ctzs anywhere ... This builtin is documented in the list of clang bultins. You can find it by using CTRL+F for the builtin, in that list, https://clang.llvm.org/docs/LanguageExtensions.html, which is the first link that Google reveals when searching for this exact builtin. Hope that helps. > ok, and? There is an HPC QCD app that was developed mostly using clang, and for whic= h we can't apply source code modifications, that we'd like to compile which GCC = as is, but currently doesn't due to this issue.=20 Does that make sense? > You could just do: Thanks for the workaround! We were already using something similar as a temporary stopgap, but can't use that forever. Hope that makes sense! Thanks!=