aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-ppoutput.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-08-04 16:49:38 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2003-08-04 16:49:38 +0000
commitb2734c680c7ed0f98360af0e0a77baca291602b1 (patch)
tree4c6c01b7c23073315f3694fd6e41a2408728b71f /gcc/c-ppoutput.c
parentb5d72edad695fce1f575748949190482fbad8c6f (diff)
downloadgcc-b2734c680c7ed0f98360af0e0a77baca291602b1.zip
gcc-b2734c680c7ed0f98360af0e0a77baca291602b1.tar.gz
gcc-b2734c680c7ed0f98360af0e0a77baca291602b1.tar.bz2
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
Diffstat (limited to 'gcc/c-ppoutput.c')
-rw-r--r--gcc/c-ppoutput.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-ppoutput.c b/gcc/c-ppoutput.c
index c37435f..68b45d2 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);