From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9BC63858D28; Mon, 19 Dec 2022 23:36:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9BC63858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671492967; bh=TGQfV8CbRZr8TLUbyo69++1mjyXzwYJsbOtTvxpAqBw=; h=From:To:Subject:Date:From; b=SzdEZ7h0kUp2YXAnYY1FSysBghMNl9sRGMx6/8rez2wwQhrBWM6j0oeFH92Vtv4nX QIFHzpIA0TdJ2DIPjuGWKKveAnjMO81SyxYj5s8dlDL6fmnG3Jki0uGVz6JqDu49PS 5Must5fdXDqKBqByPbHIDOhvRyhnPUILO4lCL/5k= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108182] New: gm2 driver mishandles target and multilib options Date: Mon, 19 Dec 2022 23:36:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: UNCONFIRMED 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: 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=3D108182 Bug ID: 108182 Summary: gm2 driver mishandles target and multilib options Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: iains at gcc dot gnu.org Target Milestone: --- The language_specific_driver for modula 2 is treating every command-line op= tion beginning with '-m' as a multilib specifier, also expecting that the follow= ing characters are the name of the multilib_os_dir. This is not correct: 1. there are many other target options beginning with '-m' (e.g. -march=3D) 2. the characters following -m are not usually the multilib_os_dir. The language_specific_driver code needs to translate the command line optio= ns appropriately to determine the multilib_os_dir (there is code that does thi= s in gcc/gcc.cc)=