diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-11-03 09:06:09 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-11-03 10:07:20 -0800 |
commit | 8bd9a00f4349ebcd65223e3dcdfe83867e417287 (patch) | |
tree | b64ec01e9803b16f969882ef1fbdef42f5c6c06a /gcc | |
parent | 9ba95047e47d7c92b0e3d30364f5937d2c20e4d8 (diff) | |
download | gcc-8bd9a00f4349ebcd65223e3dcdfe83867e417287.zip gcc-8bd9a00f4349ebcd65223e3dcdfe83867e417287.tar.gz gcc-8bd9a00f4349ebcd65223e3dcdfe83867e417287.tar.bz2 |
cpplib: EOF in pragmas
This patch moves the generation of PRAGMA_EOF earlier, to when we set
need_line, rather than when we try and get the next line. It also
prevents peeking past a PRAGMA token.
libcpp/
* lex.c (cpp_peek_token): Do not peek past CPP_PRAGMA.
(_cpp_lex_direct): Handle EOF in pragma when setting need_line,
not when needing a line.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions