From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC2EE3858410; Sun, 3 Dec 2023 23:14:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC2EE3858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701645264; bh=Jmc6Ick0NYbWBsq+f6kbDXf08nArlE4SKJ/3MP55WY0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cTTXPsBF+3tz4nFnOkZZ0BE+61JUa/x3kvqTSQv7quduc/Ywt1Q6VQVzCpKWD23xl 7adhTvCu2d7jaGXc0p4GrEDJaAIDVlBSttJmPOnJoMzguWUonku+YDOa5gXQ0eOVNc wQnaLK+vw3ULog0TSmiAYheHLBxW0URukBkHPK5k= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/112825] Modula 2 builds target objects as part of all-gcc Date: Sun, 03 Dec 2023 23:14:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius 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=3D112825 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tschwinge at gcc dot gnu.o= rg --- Comment #4 from Thomas Schwinge --- I too, months ago, had run into this problem -- via the nvptx 'as' failing = on '-o /dev/null'... (which I'll fix anyway). After a quick look at 'gcc/m2/tools-src/makeSystem' I did presume that the compiler is invoked th= ere only for some side effects (remember, '-o /dev/null'), and thus fixing this might be... (In reply to Gaius Mulley from comment #3) > Created attachment 56782 [details] > Proposed fix >=20 > This patch changes all invocations of gm2 -c to gm2 -S to avoid invoking = the > target assembler (which might not be present if make all-gcc is run). ... as simple as this. (Then, of course, interrupted by higher-priority things, and I never got back to this.) Therefore, for what it's worth, conceptual ACK to this proposed change (whi= ch I've not yet tested, but will, eventually).=