New Irix6.2 bootstrap failure related to cpp

Zack Weinberg zack@wolery.cumb.org
Tue Jul 4 09:41:00 GMT 2000


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);


More information about the Gcc-bugs mailing list