This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failure in parser.c /stage 1 (actual stage=stage2)


"Robert McNulty Junior" <bmj2001@bellsouth.net> wrote:

> stage1/xgcc.exe -Bstage1/ -B/usr/local/i686-pc-cygwin/bin/ -c   -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes  -fno-common  -DHAVE_CONFIG_H   -DCYGWIN_CROSS_DIR=\"/usr/local/i686-pc-cygwin\" -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/cp/parser.c -o cp/parser.o
>../../gcc/gcc/cp/parser.c: In function `cp_parser_declaration_seq_opt':
>../../gcc/gcc/cp/parser.c:6484: error: `pending_lang_change' undeclared
>(first use in this function)
>../../gcc/gcc/cp/parser.c:6484: error: (Each undeclared identifier is
>reported only once
>../../gcc/gcc/cp/parser.c:6484: error: for each function it appears in.)
>make[2]: *** [cp/parser.o] Error 1
>make[2]: Leaving directory `/home/Robert/gcc-3.4/o2/gcc'
>make[1]: *** [stage2_build] Error 2
>make[1]: Leaving directory `/home/Robert/gcc-3.4/o2/gcc'
>make: *** [bootstrap] Error 2

I've just seen this as well. I just added 'extern int pending_lang_change;'

% cvs diff -u
cvs server: Diffing .
Index: parser.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.7
diff -u -r1.7 parser.c
--- parser.c    31 Dec 2002 00:11:47 -0000      1.7
+++ parser.c    31 Dec 2002 11:55:22 -0000
@@ -6455,6 +6455,8 @@
      declaration
      declaration-seq declaration  */

+extern int pending_lang_change;
+
 static void
 cp_parser_declaration_seq_opt (parser)
      cp_parser *parser;

The compile completed, and the compiler appears to work :-)

Andrew.
--
 Andrew Pollard, Brooks-PRI Automation  | home: andrew@andypo.net
670 Eskdale Road, Winnersh Triangle, UK | work: Andrew.Pollard@brooks-pri.com
 Tel/Fax:+44 (0)118 9215603 / 9215660   | http://www.andypo.net


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]