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] Fix #line generation in cpp


On Wed, Jun 28, 2000 at 04:25:49PM +0200, Jakub Jelinek wrote:
> Hi!
> 
> If a header includes itself and is not fully protected against multiple
> inclusion, cpp ommits one of the needed #line commands, which has the result
> that gcc ends with error:
> [jakub@tucnak /tmp]$ gcc -c k.c
> k.c:0: #-lines for entering and leaving files don't match
> 
> Example (should I make a testcase from it):

Yes, please do.

> Ok to commit?
> 
> 2000-06-28  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* cpplex.c (output_line_command): Output correct #line if a header
> 	is including itself and is not protected against multiple inclusion.

Ok.

zw

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