diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-18 17:54:11 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-18 17:54:11 +0000 |
commit | 36ec4203224ef9bd797f0176cfc209aa872719db (patch) | |
tree | 4c75e2cbaa26bf6fb1d0cb5e2c8b8967e47c1bc2 /libcpp/directives.c | |
parent | 5f1f2de5fe3f87b056e802102fcb975979845eff (diff) | |
download | gcc-36ec4203224ef9bd797f0176cfc209aa872719db.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127614 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/directives.c')
-rw-r--r-- | libcpp/directives.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcpp/directives.c b/libcpp/directives.c index 38ca949f8c9..7f7216265c9 100644 --- a/libcpp/directives.c +++ b/libcpp/directives.c @@ -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 { |