-
- Downloads
cpphash.h (struct_lexer_state): Delete was_skipping.
* cpphash.h (struct_lexer_state): Delete was_skipping. Move skipping here from struct cpp_reader. * cpplex.c (parse_identifier): Update. (_cpp_lex_token): Don't skip tokens in a directive. * cpplib.c (struct if_stack): Update. (start_directive, end_directive): Don't change skipping state. (_cpp_handle_directive): Update. (do_ifdef, do_ifndef, do_if, do_elif): Similarly. (do_else, do_endif): Update; only check for excess tokens if not in a skipped conditional block. (push_conditional): Update for new struct if_stack. * gcc.dg/cpp/extratokens.c: Fix. * gcc.dg/cpp/skipping2.c: New tests. From-SVN: r44380
Showing
- gcc/ChangeLog 14 additions, 0 deletionsgcc/ChangeLog
- gcc/cpphash.h 3 additions, 6 deletionsgcc/cpphash.h
- gcc/cpplex.c 5 additions, 5 deletionsgcc/cpplex.c
- gcc/cpplib.c 37 additions, 45 deletionsgcc/cpplib.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/cpp/extratokens.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/cpp/extratokens.c
- gcc/testsuite/gcc.dg/cpp/skipping2.c 14 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/skipping2.c
Loading
Please register or sign in to comment