re PR preprocessor/32974 (#pragma GCC dependency generates extra token error.)
gcc/testsuite PR preprocessor/32974: * gcc.dg/cpp/pr32974.c: New file. libcpp PR preprocessor/32974: * directives.c (parse_include): Don't check for EOL when processing #pragma dependency. From-SVN: r127614
This commit is contained in:
parent
c8aea42ce2
commit
cda5e672d8
4 changed files with 22 additions and 1 deletions
|
@ -698,7 +698,11 @@ parse_include (cpp_reader *pfile, int *pangle_brackets,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (buf == NULL || CPP_OPTION (pfile, discard_comments))
|
||||
if (pfile->directive == &dtable[T_PRAGMA])
|
||||
{
|
||||
/* This pragma allows extra tokens after the file name. */
|
||||
}
|
||||
else if (buf == NULL || CPP_OPTION (pfile, discard_comments))
|
||||
check_eol (pfile);
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue