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
..
2008-04-18 09:58:08 -04:00
2008-03-28 02:07:37 +00:00
2008-04-18 10:28:53 +00:00
2008-04-21 14:02:00 +00:00
2008-04-21 14:02:00 +00:00
2007-12-03 21:04:47 +00:00
2008-04-18 10:28:53 +00:00
2008-04-11 04:21:18 +00:00
2007-07-30 18:29:20 +00:00
2008-04-18 09:58:08 -04:00
2008-04-18 00:58:58 +00:00
2008-04-18 09:58:08 -04:00
2008-04-21 14:02:00 +00:00
2008-02-20 02:16:43 +00:00
2008-04-18 09:58:08 -04:00
2008-04-21 14:02:00 +00:00
2008-04-18 09:58:08 -04:00
2008-02-20 02:16:43 +00:00
2008-04-18 09:58:08 -04:00
2005-06-29 02:34:39 +00:00
2008-04-16 21:10:37 +00:00
2005-06-29 02:34:39 +00:00
2008-03-06 18:08:40 +00:00
2007-06-01 02:12:37 +00:00
2005-06-29 02:34:39 +00:00
2005-06-29 02:34:39 +00:00
2008-02-20 02:16:43 +00:00
2005-06-29 02:34:39 +00:00
2005-06-29 02:34:39 +00:00