https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91639

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Sep  5 11:23:48 2019
New Revision: 275402

URL: https://gcc.gnu.org/viewcvs?rev=275402&root=gcc&view=rev
Log:
[preprocessor/91639] #includes at EOF

https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00280.html
        libcpp/
        PR preprocessor/91639
        * directives.c (do_include_common): Tell lexer we're a #include.
        * files.c (_cpp_stack_file): Lexer will have always incremented.
        * internal.h (struct cpp_context): Extend in_directive's
        semantics.
        * lex.c (_cpp_lex_direct): Increment line for final \n when lexing
        for an ISO #include.
        * line-map.c (linemap_line_start): Remember if we overflowed.

        gcc/testsuite/
        PR preprocessor/91639
        * c-c++-common/cpp/pr91639.c: New.
        * c-c++-common/cpp/pr91639-one.h: New.
        * c-c++-common/cpp/pr91639-two.h: New.

Added:
    trunk/gcc/testsuite/c-c++-common/cpp/pr91639-one.h
    trunk/gcc/testsuite/c-c++-common/cpp/pr91639-two.h
    trunk/gcc/testsuite/c-c++-common/cpp/pr91639.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/directives.c
    trunk/libcpp/files.c
    trunk/libcpp/internal.h
    trunk/libcpp/lex.c
    trunk/libcpp/line-map.c

Reply via email to