]> git.pld-linux.org Git - packages/gcc.git/blame - gcc-unexpected_eof.patch
- merged into 4.1 branch.
[packages/gcc.git] / gcc-unexpected_eof.patch
CommitLineData
e62855c5
PS
1# /usr/include/bits/stdio-ldbl.h new in glibc-2.3.90, triggers a bug in gcc:
2# End of file detection is defunct directly at the end of a declaration.
3# stdio-ldbl.h is the first file to end with a declaration.
4#
5# jw@suse.de, 2006-01-19
6
7--- gcc/gcc/scan-decls.c.orig 2006-01-19 16:58:59.000000000 +0100
8+++ gcc/gcc/scan-decls.c 2006-01-19 16:28:51.000000000 +0100
9@@ -202,6 +202,8 @@
10 parameter list */
11 while (token->type != CPP_SEMICOLON && token->type != CPP_EOF)
12 token = get_a_token (pfile);
13+ if (token->type == CPP_EOF)
14+ continue;
15 goto new_statement;
16 }
17 break;
This page took 0.046684 seconds and 4 git commands to generate.