diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-18 20:25:07 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-18 20:25:07 +0000 |
commit | 3e52c4186a089060d954646f9943475a11853cb6 (patch) | |
tree | e22c5191f2a3881126e43683cafcce7d76ad83ee /libcpp | |
parent | 54c88dcbc97f935718aeb9a0672486957ff7e4f9 (diff) | |
download | gcc-3e52c4186a089060d954646f9943475a11853cb6.tar.gz |
libcpp:
* directives.c (parse_include): Pass true to check_eol.
gcc/testsuite:
* gcc.dg/cpp/include5.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 4 | ||||
-rw-r--r-- | libcpp/directives.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index ab72fa61061..c4316caa334 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,5 +1,9 @@ 2009-04-18 Joseph Myers <joseph@codesourcery.com> + * directives.c (parse_include): Pass true to check_eol. + +2009-04-18 Joseph Myers <joseph@codesourcery.com> + PR preprocessor/39646 * include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM. * line-map.c (linemap_add): Handle LC_RENAME_VERBATIM. diff --git a/libcpp/directives.c b/libcpp/directives.c index 9e26732337b..c2e71016f24 100644 --- a/libcpp/directives.c +++ b/libcpp/directives.c @@ -724,7 +724,7 @@ parse_include (cpp_reader *pfile, int *pangle_brackets, /* This pragma allows extra tokens after the file name. */ } else if (buf == NULL || CPP_OPTION (pfile, discard_comments)) - check_eol (pfile, false); + check_eol (pfile, true); else { /* If we are not discarding comments, then gather them while |