This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47472] Rules printed by -M option contains duplicate slash when -J option is used
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Jan 2011 17:17:26 +0000
- Subject: [Bug fortran/47472] Rules printed by -M option contains duplicate slash when -J option is used
- Auto-submitted: auto-generated
- References: <bug-47472-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47472
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-26 17:17:04 UTC ---
Draft patch completely untested (not even compiled):
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -463,9 +463,10 @@ 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, false);
+
+ strcat (gfc_option.module_dir, "/");
}