c-ppoutput.c (cb_line_change): Don't skip line changing while parsing macro arguments...
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Aug 2003 16:49:38 +0000 (16:49 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Mon, 4 Aug 2003 16:49:38 +0000 (16:49 +0000)
* 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
gcc/c-ppoutput.c

index dbb3890..cad36c3 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
+
+       * 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  <neil@daikokuya.co.uk>
 
        * config.in: Remove HAVE_LSTAT.
index c37435f..68b45d2 100644 (file)
@@ -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);