public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47485] gfortran -M output is incorrect when -MT option is used Date: Sun, 30 Jan 2011 17:50:00 -0000 [thread overview] Message-ID: <bug-47485-4-MggJY9jWGZ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-47485-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485 --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-30 16:44:58 UTC --- The first target - the one which should not appear - is set via fortran/cpp.c's gfc_cpp_init_0 -> libcpp's cpp_read_main_file; the latter contains: if (CPP_OPTION (pfile, deps.style) != DEPS_NONE) deps_add_default_target (pfile->deps, fname); For "gcc" this is called, but "d->ntargets" == 1; in case of gfortran it is 0 and thus the extra "<source>.o" is added. The d->ntargets is incremented via "deps_add_target". Thus, the problem seems to be that deps_add_target (for -MT) should be called before libcpp's cpp_read_main_file.
next prev parent reply other threads:[~2011-01-30 16:45 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-27 8:29 [Bug fortran/47485] New: " thenlich at users dot sourceforge.net 2011-01-27 10:57 ` [Bug fortran/47485] " burnus at gcc dot gnu.org 2011-01-30 17:50 ` burnus at gcc dot gnu.org [this message] 2011-10-18 16:31 ` nightstrike at gmail dot com 2013-12-29 13:38 ` dominiq at lps dot ens.fr 2014-08-16 22:43 ` dominiq at lps dot ens.fr 2023-04-27 14:36 ` volker.weissmann at gmx dot de
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-47485-4-MggJY9jWGZ@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).