public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ
@ 2014-08-16 18:40 jpakkane at gmail dot com
2014-08-16 19:45 ` [Bug fortran/62162] " dominiq at lps dot ens.fr
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jpakkane at gmail dot com @ 2014-08-16 18:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162
Bug ID: 62162
Summary: Gfortran produces incorrect dependency files when
using -MQ
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jpakkane at gmail dot com
Create a simple Fortran file stuff.f95 that looks like this:
MODULE Circle
REAL, PARAMETER :: Pi = 3.1415927
REAL :: radius
END MODULE Circle
Then compile it with this:
gfortran -cpp -MD -MQ stuff.f95.o -o stuff.f95.o -c stuff.f95
Then print the output of the dependency file, which looks like this:
stuff.o stuff.f95.o circle.mod: stuff.f95
The bug here is that Gfortran writes both the default target (stuff.o) and the
one specified with -MQ (stuff.f95.o). It should only print the latter.
The same happens if you use -MT instead of -MQ.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/62162] Gfortran produces incorrect dependency files when using -MQ
2014-08-16 18:40 [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ jpakkane at gmail dot com
@ 2014-08-16 19:45 ` dominiq at lps dot ens.fr
2014-08-16 20:00 ` jpakkane at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-08-16 19:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2014-08-16
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Duplicate of pr47485?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/62162] Gfortran produces incorrect dependency files when using -MQ
2014-08-16 18:40 [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ jpakkane at gmail dot com
2014-08-16 19:45 ` [Bug fortran/62162] " dominiq at lps dot ens.fr
@ 2014-08-16 20:00 ` jpakkane at gmail dot com
2014-08-16 20:40 ` dominiq at lps dot ens.fr
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jpakkane at gmail dot com @ 2014-08-16 20:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162
--- Comment #2 from jpakkane at gmail dot com ---
Seems to be. There are some claims that it would be fixed in 4.6 but as the
comments state, is still around in 4.9.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/62162] Gfortran produces incorrect dependency files when using -MQ
2014-08-16 18:40 [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ jpakkane at gmail dot com
2014-08-16 19:45 ` [Bug fortran/62162] " dominiq at lps dot ens.fr
2014-08-16 20:00 ` jpakkane at gmail dot com
@ 2014-08-16 20:40 ` dominiq at lps dot ens.fr
2014-08-16 21:01 ` jpakkane at gmail dot com
2014-08-16 22:43 ` dominiq at lps dot ens.fr
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-08-16 20:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Seems to be. There are some claims that it would be fixed in 4.6 but as
> the comments state, is still around in 4.9.
>From the comment I understand that the bug has been fixed for C, but not for
gfortran. If you don't mind, I'll mark this PR as a duplicate.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/62162] Gfortran produces incorrect dependency files when using -MQ
2014-08-16 18:40 [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ jpakkane at gmail dot com
` (2 preceding siblings ...)
2014-08-16 20:40 ` dominiq at lps dot ens.fr
@ 2014-08-16 21:01 ` jpakkane at gmail dot com
2014-08-16 22:43 ` dominiq at lps dot ens.fr
4 siblings, 0 replies; 6+ messages in thread
From: jpakkane at gmail dot com @ 2014-08-16 21:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162
--- Comment #4 from jpakkane at gmail dot com ---
That seems the reasonable thing to do. Hopefully someone looks into this soon.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/62162] Gfortran produces incorrect dependency files when using -MQ
2014-08-16 18:40 [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ jpakkane at gmail dot com
` (3 preceding siblings ...)
2014-08-16 21:01 ` jpakkane at gmail dot com
@ 2014-08-16 22:43 ` dominiq at lps dot ens.fr
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-08-16 22:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> That seems the reasonable thing to do. Hopefully someone looks into this soon.
Well, don't hold your breath!-(
*** This bug has been marked as a duplicate of bug 47485 ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-08-16 22:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-16 18:40 [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ jpakkane at gmail dot com
2014-08-16 19:45 ` [Bug fortran/62162] " dominiq at lps dot ens.fr
2014-08-16 20:00 ` jpakkane at gmail dot com
2014-08-16 20:40 ` dominiq at lps dot ens.fr
2014-08-16 21:01 ` jpakkane at gmail dot com
2014-08-16 22:43 ` dominiq at lps dot ens.fr
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).