public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jpakkane at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/62162] New: Gfortran produces incorrect dependency files when using -MQ Date: Sat, 16 Aug 2014 18:40:00 -0000 [thread overview] Message-ID: <bug-62162-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2014-08-16 18:40 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-08-16 18:40 jpakkane at gmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-62162-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).