r170550 - in /branches/pph: gcc/cp/ChangeLog.pp...
crowl@gcc.gnu.org
crowl@gcc.gnu.org
Mon Feb 28 00:12:00 GMT 2011
Author: crowl
Date: Mon Feb 28 00:12:57 2011
New Revision: 170550
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170550
Log:
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.
Added:
branches/pph/gcc/testsuite/g++.dg/pph/d1unguarded.h
Modified:
branches/pph/gcc/cp/ChangeLog.pph
branches/pph/gcc/cp/pph.c
branches/pph/gcc/testsuite/ChangeLog.pph
branches/pph/gcc/testsuite/g++.dg/pph/d2null.h
branches/pph/libcpp/ChangeLog.pph
branches/pph/libcpp/files.c
branches/pph/libcpp/include/cpplib.h
More information about the Gcc-cvs
mailing list