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

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).