From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8A243858401; Mon, 27 Mar 2023 06:45:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8A243858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679899542; bh=WXoRg0c5KQvfVL68gH0Jb0IJsXT5eGV+qWJzdMr/i7o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jjjsZ5mpyJ/cxV/ZeCO4RzMUgb5EnIEl39CUwAu+chl1QINXrH8MBBchVZE12PS2X cnTXSWqPMCkzMWTLwk+ysVAQQCr+hdEauHzbSZFrKgFEa071uuSe1Lx7VZI/mkfnZh 46XMznAczXmSwYyx2bLRQBCqyE5gsU6qSYjxlX8U= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/109263] [10/11/12/13 Regression] '-g0 -ggdb -flto' gives linker error Date: Mon, 27 Mar 2023 06:45:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D109263 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:4cbd5ef0350d8ab04993eb4c48ab80999fb4f358 commit r13-6872-g4cbd5ef0350d8ab04993eb4c48ab80999fb4f358 Author: Richard Biener Date: Thu Mar 23 16:56:53 2023 +0100 lto/109263 - lto-wrapper and -g0 -ggdb The following makes lto-wrapper deal with non-combined debug disabling / enabling option combinations properly. Interestingly -gno-dwarf also enables debug. PR lto/109263 * lto-wrapper.cc (run_gcc): Parse alternate debug options as well, they always enable debug.=