From 5d70627e0fc18d73184b9dc1d3d23ace30710dab Mon Sep 17 00:00:00 2001 From: jakub Date: Fri, 29 Dec 2006 08:15:08 +0000 Subject: PR preprocessor/29612 * directives.c (do_linemarker): Set pfile->buffer->sysp always, not only when new_sysp is non-zero. * gcc.dg/cpp/pr29612-1.c: New test. * gcc.dg/cpp/pr29612-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120257 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcpp/ChangeLog | 6 ++++++ libcpp/directives.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libcpp') diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 1b1f833b8d7..de8eb92095c 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2006-12-29 Jakub Jelinek + + PR preprocessor/29612 + * directives.c (do_linemarker): Set pfile->buffer->sysp always, not + only when new_sysp is non-zero. + 2006-12-28 Tom Tromey PR preprocessor/30001: diff --git a/libcpp/directives.c b/libcpp/directives.c index e08698d76b7..7fb142e48c7 100644 --- a/libcpp/directives.c +++ b/libcpp/directives.c @@ -942,8 +942,8 @@ do_linemarker (cpp_reader *pfile) flag = read_flag (pfile, flag); if (flag == 4) new_sysp = 2; - pfile->buffer->sysp = new_sysp; } + pfile->buffer->sysp = new_sysp; check_eol (pfile); } -- cgit v1.2.3