This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] make missing header a fatal error with -MMD


On Fri, 18 Sep 2009, Tom Tromey wrote:

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

The c-opts.c change is OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]