From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D5663858D28; Thu, 5 Jan 2023 17:09:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D5663858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672938590; bh=ZX71Abaq686B92E6fzRfzYtcV/3E+BaV69Hu2c4swnE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Jsr5xX11CmUD8FzSgYcTplpuzY8KQuLf6iK+KS2bIEteZx5bcQ90lz/MGF34ccQDy lxWyE/rIoyIzqFowdsUTDsLgJBn+5Yr6gwFER/qkTuLys6Y8J4uu/T+rMlAe8k/ky4 6RjNRRoYtYaYLedPMH0PmZu6ekeYCct851pDQ5x0= 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: Thu, 05 Jan 2023 17:09:49 +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: 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 #5 from Iain Sandoe --- (In reply to Gaius Mulley from comment #4) > Created attachment 54184 [details] > Potential fix for target multilib_dir handling -m and -f. >=20 > Work in progress. 1. (I think) the string you need is "multilib_os_dir" not "multilib_dir" (b= ut ICBW about that .. there are many twisty passages in the determination of t= hese things). 2. The concern remains that the language spec handler is run pretty much fi= rst in the stack and there are several other claims on the command line that co= uld have specs that alter (or add) flags to the command line, giving a different outcome to the computation of mulilib_{,os_}dir. perhaps it would be a good idea to post this and ask the opinion of someone like Joseph on the direction.=