summaryrefslogtreecommitdiff
path: root/gcc/c-ppoutput.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-04 16:49:38 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-04 16:49:38 +0000
commit5e5bb9a77cf102a987f114f25da5e4ea23915066 (patch)
tree4c6c01b7c23073315f3694fd6e41a2408728b71f /gcc/c-ppoutput.c
parent35e7742e8ee402c479bf1e5b9afb3cce6a743adb (diff)
downloadgcc-5e5bb9a77cf102a987f114f25da5e4ea23915066.tar.gz
* c-ppoutput.c (cb_line_change): Don't skip line changing while
parsing macro arguments in the top-level context. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70148 138bc75d-0d04-0410-961f-82ee72b054a4
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 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);