public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gaius Mulley <gaiusmod2@gmail.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [PATCH, modula2] PR-108182 gm2 driver mishandles target and multilib options
Date: Fri, 06 Jan 2023 21:58:30 +0000	[thread overview]
Message-ID: <87sfgns4u1.fsf@debian> (raw)



ChangeLog entry follows:

regards,
Gaius



[PATCH, modula2] PR-108182 gm2 driver mishandles target and multilib options

here are some patches which attempt to allow target specific include
paths and library paths in the gm2 driver.  I admit that the patch has
flaws in that it only processes options -f, -m in the lang_specific_driver.
[Called after driver::set_up_specs but before read_specs is called].

I suspect a better implementation might include a language callback
(lang_post_spec) which could fixup target related paths.

gcc/ChangeLog:

	* gcc.cc (save_switch): Remove static declaration.
	(get_multilib_dir): New function.
	(reset_mdswitches): New function.
	* gcc/gcc.h (save_switch): Declare extern.
	(get_multilib_dir): New extern.
	(reset_mdswitches): New extern.

gcc/m2/ChangeLog:

	* gm2spec.cc (lang_specific_driver): Detect -m and -f options and
	call save_switch.  Assign multilib_dir with the result of
	get_multilib_dir.  Call reset_mdswitches afterwards.

             reply	other threads:[~2023-01-06 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06 21:58 Gaius Mulley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-06 21:42 Gaius Mulley
2023-01-07 10:59 ` Iain Sandoe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfgns4u1.fsf@debian \
    --to=gaiusmod2@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).