From: davek Date: Thu, 31 May 2007 02:06:48 +0000 (+0000) Subject: 2007-05-31 Dave Korn X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=0448520c52ea69cf42e018c51725fc62b869b40a;hp=63949b3873397c4a0ee63894e2a164a1cc534989 2007-05-31 Dave Korn PR preprocessor/14331 * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125212 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index a95ae545b07..ef6c39762a8 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,8 @@ +2007-05-31 Dave Korn + + PR preprocessor/14331 + * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF. + 2007-05-24 Ollie Wild * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. diff --git a/libcpp/lex.c b/libcpp/lex.c index 296b3999811..ef59f900c64 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -852,11 +852,8 @@ _cpp_get_fresh_line (cpp_reader *pfile) && buffer->next_line > buffer->rlimit && !buffer->from_stage3) { - /* Only warn once. */ + /* Clip to buffer size. */ buffer->next_line = buffer->rlimit; - cpp_error_with_line (pfile, CPP_DL_PEDWARN, pfile->line_table->highest_line, - CPP_BUF_COLUMN (buffer, buffer->cur), - "no newline at end of file"); } return_at_eof = buffer->return_at_eof;