diff options
author | Chris Demetriou <cgd@google.com> | 2009-09-18 23:15:21 -0700 |
---|---|---|
committer | Chris Demetriou <cgd@gcc.gnu.org> | 2009-09-18 23:15:21 -0700 |
commit | 74dc6a119089515f330035d60c35f56756c8c862 (patch) | |
tree | f813fae3ff4b5335403a4b5b6455bf737c81f085 /libcpp/include/cpplib.h | |
parent | b5e7280daa65db14481b2babb55a36774f62e720 (diff) | |
download | gcc-74dc6a119089515f330035d60c35f56756c8c862.zip gcc-74dc6a119089515f330035d60c35f56756c8c862.tar.gz gcc-74dc6a119089515f330035d60c35f56756c8c862.tar.bz2 |
re PR preprocessor/28435 (-MMD vs not found system header (included from a system header))
[libcpp/ChangeLog]
2009-09-18 Chris Demetriou <cgd@google.com>
PR preprocessor/28435:
* include/cpplib.h (struct cpp_options): Add new member
deps.need_preprocessor_output.
* files.c (open_file_failed): If preprocessor output is needed
always report an error.
[gcc/ChangeLog]
2009-09-19 Chris Demetriou <cgd@google.com>
PR preprocessor/28435:
* c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
to cpplib that the preprocessor output is needed.
[gcc/testsuite/ChangeLog]
2009-09-19 Chris Demetriou <cgd@google.com>
PR preprocessor/28435:
* gcc.dg/cpp/missing-header-MD.c: New test.
* gcc.dg/cpp/missing-header-MMD.c: New test.
* gcc.dg/cpp/missing-sysheader-MD.c: New test.
* gcc.dg/cpp/missing-sysheader-MMD.c: New test.
From-SVN: r151879
Diffstat (limited to 'libcpp/include/cpplib.h')
-rw-r--r-- | libcpp/include/cpplib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index e873ccf..df04668 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -433,6 +433,10 @@ struct cpp_options /* If true, no dependency is generated on the main file. */ bool ignore_main_file; + + /* If true, intend to use the preprocessor output (e.g., for compilation) + in addition to the dependency info. */ + bool need_preprocessor_output; } deps; /* Target-specific features set by the front end or client. */ |