From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7598E3858D38; Wed, 11 Jan 2023 16:16:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7598E3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673453787; bh=g4JixetIrO/YwnY8DYRs9veXUH5zvlM+zIOtWwA0rv8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JODPwJ/xfbgGGD0Vo2Ved+o0leMOpOrvY7XABPEVeC/1KK1Y4BfF+KgPmvwLHrPa5 adxq1/pT6sjWlmeJcmuO/QKXWzX4wwtPZong72NWZfWR3RpmWmsk6Vl2LiFZSBF9LZ 4jQrWVJdt+VxzcqnUJM3lubZTiAVZgnoQyvSt4nU= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108182] gm2 driver mishandles target and multilib options Date: Wed, 11 Jan 2023 16:16:26 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW 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: attachments.created 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=3D108182 --- Comment #13 from Iain Sandoe --- Created attachment 54248 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54248&action=3Dedit Revised fix This essentially makes Modula-2 build its include paths in the Front End (w= hich is how all the other compilers in GCC work too). the huge advantages there are that the prefix and multilib info are all available (as is the sysroot) with no changes needed to gcc/gcc.cc .. + the prefix correctly follows relocation of the compiler.=