This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] make missing header a fatal error with -MMD
- From: Tom Tromey <tromey at redhat dot com>
- To: Chris Demetriou <cgd at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 18 Sep 2009 10:22:43 -0600
- Subject: Re: [RFA] make missing header a fatal error with -MMD
- References: <2e7be40c0909111001r1718aebbi6610447aac03c57f@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Chris" == Chris Demetriou <cgd@google.com> writes:
Chris> This fixes a the long-open bug http://gcc.gnu.org/PR28435, in which
Chris> -MMD allows compilation to succeed even though a header was missing.
Chris> (.o file produced, and everything. yuck.)
Thank you.
Chris> PR preprocessor/28435:
Chris> * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
Chris> to cpplib that the preprocessor output is needed.
The cpp and testsuite parts are ok.
Unfortunately, I don't think I can approve the c-opts.c part, so someone
else will have to do that.
Tom