From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E99D3858C50; Sat, 18 Mar 2023 10:36:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E99D3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679135776; bh=aDSqrg93FhyAvurJLBearA6CF36vPNl9Sfcovns1tRU=; h=From:To:Subject:Date:From; b=F+GEBHwCuV+4+zIak/LddCVaoAiK/hFSVlem+BPiss0PTC80VU/xtrRxnl0RaBMj6 k0hug9pSQXIlJ5AwC+f2KuXRGxXjdn/IVdYY+Cf1uycQW3LLyRqe6Do5Zk3OhLFg4o nGV3MzWgpfdKvp/6M2aHOVbFPSn5yvEzjV5N5Chc= From: "yann at droneaud dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/109183] New: [regression?] since GCC 11.1, -MM -MMD generates "a-" prefixed dependency files Date: Sat, 18 Mar 2023 10:36:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yann at droneaud dot fr 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109183 Bug ID: 109183 Summary: [regression?] since GCC 11.1, -MM -MMD generates "a-" prefixed dependency files Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- I've found a rather surprising behavior change when using GCC >=3D 11.1 to = build some project using custom build environment. How to reproduce: : > test.c gcc -MM -MMD test.c test -e a-test.d && echo "unexpected dependency file name" I've git-bisect-ed between GCC 11.1 and GCC 10.1 and the behavior change did happen as the result of this commit: commit 1dedc12d186a110854537e1279b4e6c29f2df35a Author: Alexandre Oliva Date: Tue May 26 04:30:15 2020 -0300 revamp dump and aux output names =20=20=20 https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommit;h=3D1dedc12d186a110854537e1= 279b4e6c29f2df35a I didn't find an explanation there for this behavior change. It's not noted in the documentation either https://gcc.gnu.org/onlinedocs/gcc-11.3.0/gcc/Preprocessor-Options.html So this make me believe it's some kind of regression for a corner case. I understand the correct usage of -MMD is to be associated with some processing, -E, -S, -c, etc, while -MM imply -E, so perhaps -MM and -MMD are mutually exclusive and should not be allowed together. I dunno. But generating "a-" prefixed dependency files is rather unexpected.=