From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 133013858D28; Wed, 2 Nov 2022 12:08:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 133013858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667390890; bh=/1OdCfVWG1gHAeqDxr8MQEJ+/riPjTIhzfh2UVZLYtc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=y64icgWg9XwYerOLhkpdcSFMIluMlXGJcSDiaXAFjwQ1hk74dEpND7NKYu3PnOhcx 5TUQyBZaY+F/yDVZkMGlF7lSQKERmQzpxy3TQflKVcd3z56QUG5M/1a1C0cQjriXJz MPIOWN1/QlzejzC40ogwk0kgt/1gtUi4xeUHIwmM= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107500] Useless atexit entry for ~constant_init in eh_globals.cc Date: Wed, 02 Nov 2022 12:08:09 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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 keywords 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=3D107500 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libstdc++ |c++ Keywords| |missed-optimization --- Comment #2 from Jonathan Wakely --- I don't think this is a libstdc++ bug. We really do want that no-op destruc= tor to be in the library. It just shouldn't generate any code, but that's a compiler problem.=