[gfortran,commited] Fix handling of -J option
FX Coudert
fxcoudert@gmail.com
Sat Jan 20 14:26:00 GMT 2007
The following patch, commited to mainline as rev. 121000, fixes PR
fortran/30446 by adding the path specified in the -J (or -M) option
to the search path for modules. Otherwise, module files were created
in a given directory but gfortran then couldn't find them.
Commited as obvious after bootstraping (with Dirk Muller's patch to
prevent the current bootstrap breakage) and regtesting with
RUNTESTFLAGS="--target_board=unix/-Jmodules". I will commit it to 4.2
after bootstrap and regtesting.
2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/30446
* options.c (gfc_handle_module_path_options): Path used in -J
option is now added to the module search path.
Index: options.c
===================================================================
--- options.c (revision 120949)
+++ options.c (working copy)
@@ -345,6 +345,8 @@
gfc_option.module_dir = (char *) gfc_getmem (strlen (arg) + 2);
strcpy (gfc_option.module_dir, arg);
strcat (gfc_option.module_dir, "/");
+
+ gfc_add_include_path (gfc_option.module_dir, true);
}
static void
More information about the Fortran
mailing list