Add an error when pre-parsing a header that does not have a double
commit596607e8241e4063f79b44d21c64c560a71e4d9c
authorcrowl <crowl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Feb 2011 00:12:57 +0000 (28 00:12 +0000)
committercrowl <crowl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Feb 2011 00:12:57 +0000 (28 00:12 +0000)
treee955be0695172a7ed3ec150c912611a95cfc0a13
parent3746e53c3e3327644655de4f101e487971427521
Add an error when pre-parsing a header that does not have a double
inclusion guard.

We do this by adding function cpp_main_missing_guard that returns
the name of the main source file when it does not have a guard, and
checking that condition before writing the PPH file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/pph@170550 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog.pph
gcc/cp/pph.c
gcc/testsuite/ChangeLog.pph
gcc/testsuite/g++.dg/pph/d1unguarded.h [new file with mode: 0644]
gcc/testsuite/g++.dg/pph/d2null.h
libcpp/ChangeLog.pph
libcpp/files.c
libcpp/include/cpplib.h