This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: New Irix6.2 bootstrap failure related to cpp
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: New Irix6.2 bootstrap failure related to cpp
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Tue, 4 Jul 2000 09:40:59 -0700
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200007041311.JAA16572@caip.rutgers.edu>
On Tue, Jul 04, 2000 at 09:11:50AM -0400, Kaveh R. Ghazi wrote:
> Hi Zack,
>
> I'm getting a new bootstrap failure on Irix6.2 related to cpp
> when building the first file for libgcc in stage1:
...
> > /usr/include/string.h:6:27: invalid #ident
> > [...] many more ...
>
> The problem lines all seem to look like this:
>
> #ident "$Revision: 1.44 $"
>
> If you put that line in a file all by itself, gcc -E (from this
> morning's CVS) will flag an error.
Arrgh, thinko. Please try this patch; I'm bootstrapping it myself and
have added a test case for #ident.
zw
===================================================================
Index: cpplib.c
--- cpplib.c 2000/07/04 01:58:20 1.180
+++ cpplib.c 2000/07/04 16:40:29
@@ -644,7 +644,7 @@ do_ident (pfile)
/* Next token should be a string constant. */
if (cpp_get_token (pfile)->type == CPP_STRING)
/* And then a newline. */
- if (cpp_get_token (pfile)->type == CPP_VSPACE)
+ if (cpp_get_token (pfile)->type == CPP_EOF)
{
/* Good - ship it. */
pass_thru_directive (pfile);