re PR fortran/30446 ([4.1 only] -J option doesn't add path to search list)
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Sat, 20 Jan 2007 13:01:08 +0000 (14:01 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 20 Jan 2007 13:01:08 +0000 (13:01 +0000)
PR fortran/30446
* options.c (gfc_handle_module_path_options): Path used in -J
option is now added to the module search path.

From-SVN: r121000

gcc/fortran/ChangeLog
gcc/fortran/options.c

index d33233f944847068261b821885bcf7853366599a..99a39b23a2a05a5801e7c06b4098e64ee430b150 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2007-01-20  Richard Guenther  <rguenther@suse.de>
 
        PR fortran/30223
index cd937da8751e48053e039e980dc083442a16f71c..aa1a9404cc2331f5452de0ef1822b0e1ed50533e 100644 (file)
@@ -345,6 +345,8 @@ gfc_handle_module_path_options (const char *arg)
   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