public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used
@ 2011-01-26 11:08 thenlich at users dot sourceforge.net
2011-01-26 11:31 ` [Bug fortran/47472] " burnus at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: thenlich at users dot sourceforge.net @ 2011-01-26 11:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47472
Summary: Rules printed by -M option contains duplicate slash
when -J option is used
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: thenlich@users.sourceforge.net
Example:
testuse.f90:
program testuse
use testmake
end program testuse
testmake.f90:
module testmake
integer :: i, j
end module testmake
$ gfortran -Jobj -o obj/testmake.o -c testmake.f90
$ gfortran -Jobj -M -cpp testuse.f90
testuse.o: testuse.f90 obj//testmake.mod
Expected output is:
testuse.o: testuse.f90 obj/testmake.mod
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/47472] Rules printed by -M option contains duplicate slash when -J option is used
2011-01-26 11:08 [Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used thenlich at users dot sourceforge.net
@ 2011-01-26 11:31 ` burnus at gcc dot gnu.org
2011-01-26 17:39 ` burnus at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-01-26 11:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47472
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-26 11:04:57 UTC ---
For digging: The "-cpp -M" functionality has been added 2010-06-13 with commit
Rev. 160684.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/47472] Rules printed by -M option contains duplicate slash when -J option is used
2011-01-26 11:08 [Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used thenlich at users dot sourceforge.net
2011-01-26 11:31 ` [Bug fortran/47472] " burnus at gcc dot gnu.org
@ 2011-01-26 17:39 ` burnus at gcc dot gnu.org
2011-01-27 8:32 ` burnus at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-01-26 17:39 UTC (permalink / raw)
To: gcc-bugs
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, "/");
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/47472] Rules printed by -M option contains duplicate slash when -J option is used
2011-01-26 11:08 [Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used thenlich at users dot sourceforge.net
2011-01-26 11:31 ` [Bug fortran/47472] " burnus at gcc dot gnu.org
2011-01-26 17:39 ` burnus at gcc dot gnu.org
@ 2011-01-27 8:32 ` burnus at gcc dot gnu.org
2011-01-27 8:39 ` burnus at gcc dot gnu.org
2011-02-02 18:10 ` dnovillo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-01-27 8:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47472
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-27 07:03:03 UTC ---
Author: burnus
Date: Thu Jan 27 07:02:58 2011
New Revision: 169323
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169323
Log:
2011-01-27 Tobias Burnus <burnus@net-b.de>
PR fortran/47472
* options.c (gfc_handle_module_path_options): Save
module path without trailing slash as include path.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/options.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/47472] Rules printed by -M option contains duplicate slash when -J option is used
2011-01-26 11:08 [Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used thenlich at users dot sourceforge.net
` (2 preceding siblings ...)
2011-01-27 8:32 ` burnus at gcc dot gnu.org
@ 2011-01-27 8:39 ` burnus at gcc dot gnu.org
2011-02-02 18:10 ` dnovillo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-01-27 8:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47472
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-27 07:08:26 UTC ---
FIXED thanks for the report
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/47472] Rules printed by -M option contains duplicate slash when -J option is used
2011-01-26 11:08 [Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used thenlich at users dot sourceforge.net
` (3 preceding siblings ...)
2011-01-27 8:39 ` burnus at gcc dot gnu.org
@ 2011-02-02 18:10 ` dnovillo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2011-02-02 18:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47472
--- Comment #5 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 17:56:28 UTC ---
Author: dnovillo
Date: Wed Feb 2 17:56:25 2011
New Revision: 169643
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169643
Log:
2011-01-27 Tobias Burnus <burnus@net-b.de>
PR fortran/47472
* options.c (gfc_handle_module_path_options): Save
module path without trailing slash as include path.
Modified:
branches/google/integration/gcc/fortran/ChangeLog
branches/google/integration/gcc/fortran/options.c
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-02-02 18:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 11:08 [Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used thenlich at users dot sourceforge.net
2011-01-26 11:31 ` [Bug fortran/47472] " burnus at gcc dot gnu.org
2011-01-26 17:39 ` burnus at gcc dot gnu.org
2011-01-27 8:32 ` burnus at gcc dot gnu.org
2011-01-27 8:39 ` burnus at gcc dot gnu.org
2011-02-02 18:10 ` dnovillo at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).