SOURCES (GCC_4_1): gcc-unexpected_eof.patch (NEW) - little fix for...

pluto pluto at pld-linux.org
Sun Feb 26 16:52:53 CET 2006


Author: pluto                        Date: Sun Feb 26 15:52:53 2006 GMT
Module: SOURCES                       Tag: GCC_4_1
---- Log message:
- little fix for scanner.

---- Files affected:
SOURCES:
   gcc-unexpected_eof.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gcc-unexpected_eof.patch
diff -u /dev/null SOURCES/gcc-unexpected_eof.patch:1.1.2.1
--- /dev/null	Sun Feb 26 16:52:53 2006
+++ SOURCES/gcc-unexpected_eof.patch	Sun Feb 26 16:52:48 2006
@@ -0,0 +1,17 @@
+# /usr/include/bits/stdio-ldbl.h new in glibc-2.3.90, triggers a bug in gcc:
+# End of file detection is defunct directly at the end of a declaration.
+# stdio-ldbl.h is the first file to end with a declaration. 
+# 
+# jw at suse.de, 2006-01-19
+
+--- gcc/gcc/scan-decls.c.orig	2006-01-19 16:58:59.000000000 +0100
++++ gcc/gcc/scan-decls.c	2006-01-19 16:28:51.000000000 +0100
+@@ -202,6 +202,8 @@
+ 		 parameter list */
+ 	      while (token->type != CPP_SEMICOLON && token->type != CPP_EOF)
+ 		token = get_a_token (pfile);
++              if (token->type == CPP_EOF)
++	        continue;
+ 	      goto new_statement;
+ 	    }
+ 	  break;
================================================================


More information about the pld-cvs-commit mailing list