This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for line numbering bug in cpplib
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: patch for line numbering bug in cpplib
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Mon, 19 Apr 1999 14:31:26 -0400
- CC: egcs-patches at egcs dot cygnus dot com, Michael Tiemann <tiemann at cygnus dot com>
- Organization: Cygnus Solutions Canada Ltd
- References: <199904142253.SAA16678@blastula.phys.columbia.edu>
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.