This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch for line numbering bug in cpplib


This looks OK to me. Please install it.

Dave

Zack Weinberg wrote:

> This patch corrects a line numbering bug in cpplib.  Test case is
> gcc.dg/990413-1.c.
>
> zw
>
> 1999-04-14 18:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
>
>         * cpplib.c (output_line_command): Drop CONDITIONAL argument.
>         We can omit unnecessary line commands if file_change ==
>         same_file and pfile->lineno != 0.  All callers changed.
>         (cpp_get_token [case '\n']): Don't bump pfile->lineno if
>         CPP_OPTIONS (pfile)->no_line_commands is set.
>         * cpplib.h: Fix prototype of output_line_command.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]