From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 445A6385840D; Thu, 9 Feb 2023 23:40:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 445A6385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675986036; bh=THECLD06Yv3/Ni69VB5m7Qn/rexlo3etgtBoV7B8dJM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MXzducde2txkNA5oDWvRPsvUvuKXrkrlERqq2uQhXy+pG8JtjKQVIZxKPXjvv6/0d jNQVqiRxqZ9O7pVoVxddKeGINKHoNfZtaRTpnzHSRQvKYIiXyI9IuHCYuY/UEpDsmU 7iD6lvb2QO33gPNMZygUMm9rkzi+E2PhZ+s0gUOk= From: "rmclure at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108734] powerpc: False Detection of __atomic_*_8 Builtins Date: Thu, 09 Feb 2023 23:40:34 +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: rmclure at linux dot ibm.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: bug_status resolution 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 Rohan McLure changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #6 from Rohan McLure --- David is right, I was assuming '__has_builtin' implied that the function wo= uld be inlined in without needing to be obtained from libatomic. The translation unit attached should then at least compile with no linker flags required, a= s if the check fails it should define a stub implementation of __atomic_store_8 (pardon the obvious syntax error in that stub). Sorry, my mistake. Yes that makes more sense.=