aboutsummaryrefslogtreecommitdiff
path: root/libcpp/directives.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-01-26 11:08:00 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-01-26 11:08:00 +0100
commit18f5df94df9a8abcbf9410c79c180de6f7b85f51 (patch)
tree9c09a82425d5c1d2c2859f73f4ca6281c4a446b8 /libcpp/directives.c
parent2f6a6b28ebec12d88256c90a34288f33cbfd607e (diff)
downloadgcc-18f5df94df9a8abcbf9410c79c180de6f7b85f51.zip
gcc-18f5df94df9a8abcbf9410c79c180de6f7b85f51.tar.gz
gcc-18f5df94df9a8abcbf9410c79c180de6f7b85f51.tar.bz2
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
Diffstat (limited to 'libcpp/directives.c')
-rw-r--r--libcpp/directives.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcpp/directives.c b/libcpp/directives.c
index 1a35c07..1ada834 100644
--- a/libcpp/directives.c
+++ b/libcpp/directives.c
@@ -204,8 +204,6 @@ static const directive linemarker_dir =
do_linemarker, UC"#", 1, KANDR, IN_I
};
-#define SEEN_EOL() (pfile->cur_token[-1].type == CPP_EOF)
-
/* Skip any remaining tokens in a directive. */
static void
skip_rest_of_line (cpp_reader *pfile)