From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D0D53856DED; Mon, 31 Oct 2022 07:55:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D0D53856DED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667202947; bh=3CgwnJYLTYSA9XRIuWUCUnJ215WPFeOmGj+qA78v5aY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PzjaH04qg3MqDwGKnGftzSA5dZ9u5Yca5ihrf+PXV9lZ2TGFPBqSNypHts8w3hvck HhheFH8tTczDOpcfkyF1YW5lQdZO0Tv9Tdn9NrSiM3TczOYa8ePs3DUiQeugkQIU3u eAMdSz1HFyEV4dmBokk0ZvGwyG5K64kIsLc6vZew= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105495] `__atomic_compare_exchange` prevents tail-call optimization Date: Mon, 31 Oct 2022 07:55:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.3.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: component 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=3D105495 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |tree-optimization --- Comment #6 from Andrew Pinski --- I wonder if we could add some access attribute such that the 2nd argument of __atomic_compare_exchange_4 is marked as read only ...=