This is the mail archive of the gcc-cvs@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]

r170550 - in /branches/pph: gcc/cp/ChangeLog.pp...


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


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