From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89E233858D37; Fri, 3 Mar 2023 17:25:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89E233858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677864309; bh=U/EdVe7ESue62sKUzDIoasgSET2prWLkFm+w2Vc1nBs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dEWhman8B0nFhx7F4wz1R5nGdFrZXdd2ckEhXvWnhASZFnSNeOVGdMXZ0xX3x59Gr 0lo42HdO0NSbKOiknndAvDhQOv1dmZO2clqLk/ClJ2LrhFC9rAlWhie87tF9R7DN6H lQ1jm6tihi+RBMgi5JjvjJtPJ0dZaLHSKAuZkvlY= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108969] [13 Regression] Initializing iostreams in the library needs a GLIBCXX_3.4.31 versioned symbol Date: Fri, 03 Mar 2023 17:25:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi 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=3D108969 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #11 from Patrick Palka --- Would it make sense to backport a "transition" version of r13-3707 to the release branches, one that just adds the static __ioinit object into the compiled library (without the init_priority attribute, since we only care a= bout dynamic linking compatibility) and doesn't remove the static object from ? That way, a program compiled with GCC 13 and linked against libstdc++ 12.3 would still work w.r.t. stream initialization. And this library-side initialization should be safe since the ios_base::Init cdtors are idempoten= t.=