From b2734c680c7ed0f98360af0e0a77baca291602b1 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 4 Aug 2003 16:49:38 +0000 Subject: [PATCH] c-ppoutput.c (cb_line_change): Don't skip line changing while parsing macro arguments in the top-level context. * c-ppoutput.c (cb_line_change): Don't skip line changing while parsing macro arguments in the top-level context. From-SVN: r70148 --- gcc/ChangeLog | 5 +++++ gcc/c-ppoutput.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbb3890fb43..cad36c32a62 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-08-04 Alexandre Oliva + + * c-ppoutput.c (cb_line_change): Don't skip line changing while + parsing macro arguments in the top-level context. + 2003-08-04 Neil Booth * config.in: Remove HAVE_LSTAT. diff --git a/gcc/c-ppoutput.c b/gcc/c-ppoutput.c index c37435fbf39..68b45d2f517 100644 --- a/gcc/c-ppoutput.c +++ b/gcc/c-ppoutput.c @@ -260,9 +260,10 @@ print_line (const struct line_map *map, unsigned int line, const char *special_f /* Called when a line of output is started. TOKEN is the first token of the line, and at end of file will be CPP_EOF. */ static void -cb_line_change (cpp_reader *pfile, const cpp_token *token, int parsing_args) +cb_line_change (cpp_reader *pfile, const cpp_token *token, + int parsing_args ATTRIBUTE_UNUSED) { - if (token->type == CPP_EOF || parsing_args) + if (token->type == CPP_EOF) return; maybe_print_line (print.map, token->line); -- 2.30.2