From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 17F0D3833EA0; Fri, 9 Dec 2022 19:56:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17F0D3833EA0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670615798; bh=04EKWgyUcX4YeiajQW9sYVbtVEWpDYa/pwE2aCghIBA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bYXN+KJmJaRT1CedY5FzucSfGXYqhhVaSGy25ytpHQnXfrRwa3CgnonadA822VQ8l QM5PnUjCFCDuz3BIaYlDzGwycsfUzbCK75dW2adutlvBbXoR6EtwMJuNiV5rqzN+0P ZCAvBUdNEwTXj+LUt/Eir/gD3xeul1du3yeacrQ8= From: "m.cencora at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/107675] [13 Regression] GCC-13 is significantly slower to startup on C++ statically linked programs Date: Fri, 09 Dec 2022 19:56:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: m.cencora at gmail dot com 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: 13.0 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=3D107675 m.cencora at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.cencora at gmail dot com --- Comment #14 from m.cencora at gmail dot com --- A comment to Thomas proposed patch "[PATCH] initialize fde objects lazily" You cannot use 'relaxed' atomic load in is_object_initialized - as thread performing such load will not observe/synchronize with any modifications (o= ther than atomic variable itself) performed by other threads. Excerpt from cppreference: Relaxed operation: there are no synchronization or ordering constraints imp= osed on other reads or writes, only this operation's atomicity is guaranteed.=