https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109248
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:aae0d89e65c5da6ef45ec787e165dccb5ae7e2d0 commit r13-6803-gaae0d89e65c5da6ef45ec787e165dccb5ae7e2d0 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Wed Mar 22 16:39:12 2023 +0000 modula2: Add cwd to include path. Include m2cor before m2pim. The driver should default to include the current working directory in the module search path. This patch adds . to the search path provided -fm2-pathname has not been specified. The patch also reorders the pim libraries so that the m2cor directory is searched before m2pim. Coroutine support is visible by default for both -fpim and -fiso (from their respective SYSTEM modules). gcc/m2/ChangeLog: PR modula2/109248 * Make-lang.in (m2/pge-boot/%.o): Add CFLAGS and CXXFLAGS for C and C++ compiles. * gm2spec.cc (add_m2_I_path): Indentation. (lang_specific_driver): New variable seen_pathname. Detect -fm2-pathname. If not seen then push_back_Ipath ("."). Change non iso library path to "m2cor,m2log,m2pim,m2iso". Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>