From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFD06385840D; Thu, 9 Feb 2023 17:56:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFD06385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675965408; bh=AcJRvuEWVea40R453Oksaf6RsDiIhBkDr+VtvjIBg3U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JPfrPbUWprN+PY71xfdpGm096zkN8sZicoqXrVwBnkNwYexz2D/ul5s5Aq7NtaZWk EVeK5KLq+3a7njBUWBSV0JJjT/lifdt1aFV38lhc94EQmyuOYedeuQWeY8fhhN1ly2 NMAg/sCLrnlSFyWNBPB0o07UtkJoFdL8msj4cRDA= From: "dje 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 17:56:48 +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: dje 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: cc 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 David Edelsohn changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dje at gcc dot gnu.org --- Comment #5 from David Edelsohn --- Rohan, I'm sorry that this is confusing, but the issue is cockpit error. __has_builtin() does not mean that the builtin is inlined. It only means t= hat GCC recognizes the builtin. That is how __has_builtin() is documented. In= 32 bit mode, GCC emits an external reference for the builtin: 8 byte atomic requires libatomic library, which is not linked by default (and shouldn't b= e).=