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.
[PATCH, modula2] PR-108182 gm2 driver mishandles target and multilib options
Gaius Mulley via Gcc-patches Fri, 06 Jan 2023 13:58:42 -0800
- [PATCH, modula2] PR-108182 gm2 driver mishand... Gaius Mulley via Gcc-patches
- Re: [PATCH, modula2] PR-108182 gm2 drive... Iain Sandoe
- [PATCH, modula2] PR-108182 gm2 driver mi... Gaius Mulley via Gcc-patches