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

Joseph S. Myers joseph@codesourcery.com
Fri Sep 18 17:43:00 GMT 2009


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



More information about the Gcc-patches mailing list