public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dx_zhou at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/51341] make cannot detect head file change by dependency file with gcc 4.6.1 on ubuntu 11.10
Date: Fri, 09 Dec 2011 14:31:00 -0000 [thread overview]
Message-ID: <bug-51341-4-cuggYBiyg6@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51341-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51341
--- Comment #5 from davidz <dx_zhou at hotmail dot com> 2011-12-09 14:06:22 UTC ---
This did solve the issue. Thanks a lot for the explain and syntax!
(In reply to comment #4)
> (In reply to comment #3)
> > I am a little confused. -MT will create .d file. Then make command will include
> > .d and re-compile if dependency file changes. The issue is that g++ 4.6.1
> > doesn't re-compile if I touch .h. Does this mean my test.d format is wrong? If
>
> Did you read the linked bug report? Did you look at the content of test.d?
>
> > I need another -MT, what syntax it should be? Thanks a lot!
>
> g++ -c -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" "-MT$@" $< -o $@
prev parent reply other threads:[~2011-12-09 14:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 22:57 [Bug c++/51341] New: " dx_zhou at hotmail dot com
2011-11-28 23:20 ` [Bug preprocessor/51341] " pinskia at gcc dot gnu.org
2011-11-28 23:27 ` pinskia at gcc dot gnu.org
2011-11-29 15:39 ` dx_zhou at hotmail dot com
2011-11-29 16:17 ` redi at gcc dot gnu.org
2011-12-09 14:31 ` dx_zhou at hotmail dot com [this message]
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-51341-4-cuggYBiyg6@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: link
Be 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).