Commit 61cc8223 by Joseph Myers Committed by Joseph Myers

directives.c (parse_include): Pass true to check_eol.

libcpp:
	* directives.c (parse_include): Pass true to check_eol.

gcc/testsuite:
	* gcc.dg/cpp/include5.c: New test.

From-SVN: r146327
parent 149ccdd4
2009-04-18 Joseph Myers <joseph@codesourcery.com>
* gcc.dg/cpp/include5.c: New test.
2009-04-18 Joseph Myers <joseph@codesourcery.com>
PR c/35210
* gcc.dg/call-diag-2.c: New test.
......
/* Test #include directives with macros expanding to empty. */
#define EMPTY_OBJ
#define EMPTY_FUNC()
#include <stddef.h> EMPTY_OBJ
#include <stddef.h> EMPTY_FUNC()
#include "stddef.h" EMPTY_OBJ
#include "stddef.h" EMPTY_FUNC()
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.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment