From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 885AF3954E2E; Thu, 8 Dec 2022 15:05:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 885AF3954E2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670511945; bh=Ap8kelzcJjACFZfdeF7EOAoe0PwPSdHPo0zVsYCDxaY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=td5yZDpQhU1w/F/uS6ekNmf7z2hzusI+Lg+DnO6mM1uqKICZ0fFYnFaAMBOEqcdrI ll1BBPTuiLq19xpBplhRPebYyO4PQoZn/W+Y7dNxtCMCxQsRINLSh+TeeMlJ9LMdJO AuZghqgaycRG21FpWUYPb8QzaXqxz4qEAdrFk0cE= From: "soap at gentoo dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/108022] [11/12/13 regression] -frecord-gcc-switches doesn't record preprocessor macros since r11-5739-g7caa49706316e6 Date: Thu, 08 Dec 2022 15:05:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: soap at gentoo dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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=3D108022 David Seifert changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |soap at gentoo dot org --- Comment #4 from David Seifert --- (In reply to Jakub Jelinek from comment #3) > -frecord-gcc-switches is a totally useless option btw, just forget it exi= sts > and use -grecord-gcc-switches instead. The problem is, the UX isn't exactly helpful. The only way I managed to ext= ract the macro definition was gcc -ggdb3 -grecord-gcc-switches -D_TEST_SAVE_CPPFLAGS test.c -o ~/test && objdump -s -j .debug_str test | grep SAVE which doesn't make our use case any easier really (since it requires heavy debug flags).=