From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52994385781A; Tue, 25 Aug 2020 12:08:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52994385781A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598357327; bh=1LAazM8QmA32bCKvMRd3RgBNKfnPtT/HIBtARIyI3GE=; h=From:To:Subject:Date:From; b=urGTmbzfRlzDKCxx+LDwoIEjoG1LgLwo6RaqDhligf1/onQyWc5Q0bdNnnY2JtyAs jqBb67FjCLdX4185w/m1iECMQPb41lnE19Li3PyLYRX+ehdCwtGJZzDqw42zAkg5iB 4OgmrVh8ex3D9ZPBFdrZHYQPubl3xMasoFxC4/I4= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96780] New: debuginfo for std::move and std::forward isn't useful Date: Tue, 25 Aug 2020 12:08:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2020 12:08:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96780 Bug ID: 96780 Summary: debuginfo for std::move and std::forward isn't useful Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- When debugging I don't want to step into std::move and std::forward, ever. They're effectively just casts, and although g++ correctly optimises them a= way to nothing, it leaves debuginfo that makes gdb step into them. Is there any good reason to ever step into them, or could we special case t= hem in g++ to not emit any debuginfo, at least when inlined? I tried adding __attribute__((__always_inline__,__artificial__)) but that seemed to make it even worse.=