mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
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
@ -1,3 +1,8 @@
|
||||
2007-08-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR preprocessor/32974:
|
||||
* gcc.dg/cpp/pr32974.c: New file.
|
||||
|
||||
2007-08-17 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
* gfortran.dg/interface_abstract_1.f90: New.
|
||||
|
6
gcc/testsuite/gcc.dg/cpp/pr32974.c
Normal file
6
gcc/testsuite/gcc.dg/cpp/pr32974.c
Normal file
@ -0,0 +1,6 @@
|
||||
/* PR preprocessor/32974 - don't warn for extra tokens in pragma dependency */
|
||||
/* { dg-do compile } */
|
||||
|
||||
#pragma GCC dependency "pr32974.c" extra tokens are ok
|
||||
|
||||
int x;
|
@ -1,3 +1,9 @@
|
||||
2007-08-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR preprocessor/32974:
|
||||
* directives.c (parse_include): Don't check for EOL when
|
||||
processing #pragma dependency.
|
||||
|
||||
2007-07-30 Ollie Wild <aaw@google.com>
|
||||
|
||||
* directives-only.c: New file.
|
||||
|
@ -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…
Reference in New Issue
Block a user