From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03F833858288; Thu, 7 Dec 2023 08:48:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03F833858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701938920; bh=QkJIE9ru4wr7NvVKqAgFCJDfJyPP9C2bGYbdwefNE6U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U1nFCvHjNYuMnqBM+b5RWHSTcwBBCWcF+9LaOEYh1B0uCMgm1QRIxuUQK7PF36y3Y 7ccmL66z/JZyiF4mkGASO9z0v9AgcnW9wiA+fzoqpa0tTxi6rvuaGNglRnK/TDymyO H6aidJfzY68TpT4/SmRLFM3UG6mhpzPqPNE06LOY= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/111965] -fno-debug-cpp does not disable -fdebug-cpp Date: Thu, 07 Dec 2023 08:48:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: 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: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D111965 --- Comment #7 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:8c088c4307dbb855596acb6366b0882e95d20b91 commit r14-6266-g8c088c4307dbb855596acb6366b0882e95d20b91 Author: Jakub Jelinek Date: Thu Dec 7 09:47:54 2023 +0100 c-family: Fix up -fno-debug-cpp [PR111965] As can be seen in the second testcase, -fno-debug-cpp is actually implemented the same as -fdebug-cpp and so doesn't turn the debugging off. The following patch fixes that. 2023-12-07 Andrew Pinski Jakub Jelinek PR preprocessor/111965 gcc/c-family/ * c-opts.cc (c_common_handle_option) : Set cpp_opts->debug to value rather than 1. gcc/testsuite/ * gcc.dg/cpp/pr111965-1.c: New test. * gcc.dg/cpp/pr111965-2.c: New test.=