From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF14F3858D3C; Tue, 12 Sep 2023 07:29:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF14F3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694503792; bh=ycM9DOshyFvsia/e5mp0SDJby2DbLUwPjpjHBu855Z8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XOAKG9gx1KkVNWkK2cuff6pG5W0F2b7h3xaVDJVuh2k6fkTRUyosoNdrPFwFpo4sO J27yNjT4v2Hhv8GTTzxGLc+6wFXR+IWoUiDL1xRGZquX+itdHnfhf3TdKAAXiF3ekC wbr6O91vuNJJRtXmDXjW9g2eZr68SME9tG0fWN+8= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111243] The -Og option inlines functions, making for a poor debugging experience. Date: Tue, 12 Sep 2023 07:29:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 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=3D111243 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #13 from Jakub Jelinek --- I think the main problem of -Og for debug info is that we don't artificially use all automatic vars at the end of their scopes, so if they aren't used everywhere in the scope, they might not be available for debugging (or use DW_OP_entry_value and the like that will only sometimes work but aren't guaranteed to work all the time).=