gcc/libcpp
Joseph Myers 47580d22b2 re PR preprocessor/15638 (gcc should have option to treat missing headers as fatal)
PR preprocessor/15638
gcc:
	* c-common.c (c_cpp_error): Handle CPP_DL_FATAL.

gcc/fortran:
	* cpp.c (cb_cpp_error): Handle CPP_DL_FATAL.

gcc/testsuite:
	* gcc.dg/cpp/missing-header-1.c: New test.
	* gcc.dg/cpp/include2.c: Only test #include <>.  Expect
	"compilation terminated" message.
	* gcc.dg/cpp/include2a.c: New test.  Copy of include2.c but only
	test #include "".
	* gcc.dg/pch/counter-2.c, gcc.dg/pch/valid-1.c,
	gcc.dg/pch/valid-2.c, gcc.dg/pch/warn-1.c: Expect "compilation
	terminated" message.

libcpp:
	* files.c (_cpp_find_file): Call open_file_failed after diagnosing
	invalid PCH.
	(open_file_failed): Make error for missing file fatal.
	* include/cpplib.h (CPP_DL_FATAL): Define.

From-SVN: r145341
2009-03-31 13:43:29 +01:00
..
include re PR preprocessor/15638 (gcc should have option to treat missing headers as fatal) 2009-03-31 13:43:29 +01:00
po * cpplib.pot: Regenerate. 2009-03-28 06:57:06 +00:00
aclocal.m4
ChangeLog re PR preprocessor/15638 (gcc should have option to treat missing headers as fatal) 2009-03-31 13:43:29 +01:00
charset.c
config.in re PR preprocessor/31932 (cpp -f*-charset and gcj --encoding accept no values except UTF-8) 2009-03-30 20:54:18 +00:00
configure re PR preprocessor/31932 (cpp -f*-charset and gcj --encoding accept no values except UTF-8) 2009-03-30 20:54:18 +00:00
configure.ac re PR preprocessor/31932 (cpp -f*-charset and gcj --encoding accept no values except UTF-8) 2009-03-30 20:54:18 +00:00
directives-only.c
directives.c re PR preprocessor/34695 (Preprocessor warning->error conversion from -Werror is silent) 2009-03-29 23:56:07 +01:00
errors.c re PR preprocessor/34695 (Preprocessor warning->error conversion from -Werror is silent) 2009-03-29 23:56:07 +01:00
expr.c expr.c (struct op): Add location. 2008-10-31 22:00:37 +00:00
files.c re PR preprocessor/15638 (gcc should have option to treat missing headers as fatal) 2009-03-31 13:43:29 +01:00
identifiers.c
init.c re PR preprocessor/34695 (Preprocessor warning->error conversion from -Werror is silent) 2009-03-29 23:56:07 +01:00
internal.h re PR preprocessor/31932 (cpp -f*-charset and gcj --encoding accept no values except UTF-8) 2009-03-30 20:54:18 +00:00
lex.c lex.c (lex_string): Return a CPP_LESS token for missing '>' in a header name. 2009-02-21 21:25:39 +00:00
line-map.c re PR preprocessor/39512 (linemap_init in lex.c does not initialize reallocator) 2009-03-30 15:25:42 +00:00
macro.c re PR target/39558 (Bad interaction of decls named 'vector' and -maltivec vector support) 2009-03-30 17:00:52 +02:00
Makefile.in re PR preprocessor/34695 (Preprocessor warning->error conversion from -Werror is silent) 2009-03-29 23:56:07 +01:00
makeucnid.c
mkdeps.c
pch.c re PR target/37033 (Revision 138733 breaks -g vs -g0 for PCH) 2008-12-10 17:31:07 +00:00
symtab.c
system.h
traditional.c
ucnid.h
ucnid.tab