This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix #line generation in cpp
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Fix #line generation in cpp
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Wed, 28 Jun 2000 12:13:19 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000628162549.P474@sunsite.ms.mff.cuni.cz>
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