aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-11-03 09:06:09 -0800
committerNathan Sidwell <nathan@acm.org>2020-11-03 10:07:20 -0800
commit8bd9a00f4349ebcd65223e3dcdfe83867e417287 (patch)
treeb64ec01e9803b16f969882ef1fbdef42f5c6c06a /gcc
parent9ba95047e47d7c92b0e3d30364f5937d2c20e4d8 (diff)
downloadgcc-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