gcc/libcpp
Tom Tromey 688e7a5344 re PR preprocessor/33415 (Can't compile .cpp file with UTF-8 BOM.)
libcpp
	PR libcpp/33415:
	* charset.c (_cpp_convert_input): Add buffer_start argument.
	Ignore UTF-8 BOM if seen.
	* internal.h (_cpp_convert_input): Add argument.
	* files.c (struct _cpp_file) <buffer_start>: New field.
	(destroy_cpp_file): Free buffer_start, not buffer.
	(_cpp_pop_file_buffer): Likewise.
	(read_file_guts): Update.
gcc/testsuite
	PR libcpp/33415:
	* gcc.dg/cpp/pr33415.c: New file.

From-SVN: r134507
2008-04-21 14:02:00 +00:00
..
include cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
po * fr.po: Update. 2008-03-28 02:07:37 +00:00
aclocal.m4 re PR other/35457 (Error building GCC trunk on CELL SPU) 2008-04-18 10:28:53 +00:00
ChangeLog re PR preprocessor/33415 (Can't compile .cpp file with UTF-8 BOM.) 2008-04-21 14:02:00 +00:00
charset.c re PR preprocessor/33415 (Can't compile .cpp file with UTF-8 BOM.) 2008-04-21 14:02:00 +00:00
config.in
configure re PR other/35457 (Error building GCC trunk on CELL SPU) 2008-04-18 10:28:53 +00:00
configure.ac config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*. 2008-04-11 04:21:18 +00:00
directives-only.c
directives.c cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
errors.c re PR preprocessor/34866 (valgrind error indication in testsuite from errors.c:156:cpp_error with gcc.dg/cpp/Wmissingdirs.c) 2008-04-18 00:58:58 +00:00
expr.c cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
files.c re PR preprocessor/33415 (Can't compile .cpp file with UTF-8 BOM.) 2008-04-21 14:02:00 +00:00
identifiers.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
init.c cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
internal.h re PR preprocessor/33415 (Can't compile .cpp file with UTF-8 BOM.) 2008-04-21 14:02:00 +00:00
lex.c cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
line-map.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
macro.c cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
makedepend.c
Makefile.in Makefile.in (TAGS_SOURCES): New variable. 2008-04-16 21:10:37 +00:00
makeucnid.c
mkdeps.c re PR preprocessor/35458 (Dependency generation (-M) does not quote '#' in filenames) 2008-03-06 18:08:40 +00:00
pch.c
symtab.c
system.h
traditional.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
ucnid.h
ucnid.tab