From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 290E838515D7; Tue, 10 Jan 2023 18:25:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 290E838515D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673375119; bh=GMvERcsgrBE0/3G1yackAQnqbBUuk40gFTvkXc886SQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KSe8zDYSH5Ytw5O1k4Qxij8cL3ZAuI5Trfux5ulg2hAM3m2qlA0X0WvObUW7yHmS5 lp5St6IQHDZEYeyuuoeA4b5B+5V7j7Dyg3cEbhY7x7H1CtnXT/SjNyZtX+MRXyGkDb MaqocIl3S8wf8TN4EKU9M0NPt9gKpHNYOW6KtR9E= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108361] Assembly code that is never called emitted on x86_64 Date: Tue, 10 Jan 2023 18:25:18 +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.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: resolution bug_status 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=3D108361 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #3 from Andrew Pinski --- std::system_error::system_error is definitely originally called in the sour= ce. Just that after inlining and some optimizations, the call is removed from t= he call from main. The missed optimization is a dup of bug 99373. But the linker errors is a bug in your code really. *** This bug has been marked as a duplicate of bug 99373 ***=