re PR preprocessor/88974 (ICE: Segmentation fault (in linemap_resolve_location))
authorJakub Jelinek <jakub@redhat.com>
Sat, 26 Jan 2019 10:08:00 +0000 (11:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 26 Jan 2019 10:08:00 +0000 (11:08 +0100)
commit18f5df94df9a8abcbf9410c79c180de6f7b85f51
tree9c09a82425d5c1d2c2859f73f4ca6281c4a446b8
parent2f6a6b28ebec12d88256c90a34288f33cbfd607e
re PR preprocessor/88974 (ICE: Segmentation fault (in linemap_resolve_location))

PR preprocessor/88974
* directives.c (SEEN_EOL): Move macro to ...
* internal.h (SEEN_EOL): ... here.
* expr.c (parse_has_include): Don't cpp_get_token if SEEN_EOL ().

* c-c++-common/cpp/pr88974.c: New test.

From-SVN: r268285
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cpp/pr88974.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c
libcpp/expr.c
libcpp/internal.h