From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0DA7C3858C60; Thu, 9 Feb 2023 08:19:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0DA7C3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675930769; bh=DwJRgj4P2nnhEsU0uNwe/h+fDtBDlRq+G10ipRfMXC0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t1hHObs4ovfxubYWWCGVSMB6o9ZMyT4JBc4GztATPzI0Ek1x3tyowyXYWZRctWxzr +BLYgmPd6WW3klFD9ueERO8CvLrj9RX00PCRJDQYEaoZDPqfDPkY9tgkS9MOVhaymX IvAAGaryG65/faX5Mu3RCtMS7iPOBdlYfvoh71ys= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108734] powerpc: False Detection of __atomic_*_8 Builtins Date: Thu, 09 Feb 2023 08:19:28 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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=3D108734 --- Comment #4 from Jonathan Wakely --- What are you actually trying to do here? If you're trying to provide your own definitions for the atomic built-ins t= hen obviously you need to know platform-specific details, including whether that operation is already expanded without emitting a library call. If you're trying to do something else, maybe testing the macro __GCC_ATOMIC_LLONG_LOCK_FREE=3D=3D2 can help.=