public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function)
@ 2002-12-31  3:59 Christian Jönsson
  2002-12-31  4:03 ` Andreas Tobler
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Jönsson @ 2002-12-31  3:59 UTC (permalink / raw)
  To: gcc

This was on a Windows XP SP1/cygwin P4 system with these packages:

binutils  2.13.90 20021118  (cygwin ver. 20021117-1)
cygwin    1.3.18-1
dejagnu   1.4.2.x           (cygwin ver. 20021217-1)
gcc       3.2-3

In tree joined gcc and binutils cvs trunks.

LAST_UPDATED: Tue Dec 31 09:06:57 GMT 2002


/usr/local/src/gcc-binutils/trunk/gcc-binutils/configure  --prefix=/usr/local/gcc-binutils --disable-shared --enable-threads=posix --with-system-zlib --disable-nls --enable-libgcj --enable-version-specific-runtime-libs --without-included-gettext --enable-sjlj-exceptions --with-gcc-version-trigger=/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/version.c


stage1/xgcc.exe -Bstage1/ -B/usr/local/gcc-binutils/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/gcc-binutils/i686-pc-cygwin\" -I. -Icp -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/cp -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/config -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/../include /usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/cp/parser.c -o cp/parser.o
/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/cp/parser.c: In function `cp_parser_declaration_seq_opt':
/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function)
/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/cp/parser.c:6484: error: (Each undeclared identifier is reported only once
/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/cp/parser.c:6484: error: for
each function it appears in.)
make[2]: *** [cp/parser.o] Error 1
make[2]: Leaving directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc'
make: *** [bootstrap-lean] Error 2
chj@TOPPEN:/usr/local/src/gcc-binutils/trunk/objdir$

Cheers,

/ChJ

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function)
  2002-12-31  3:59 Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function) Christian Jönsson
@ 2002-12-31  4:03 ` Andreas Tobler
  2002-12-31  7:13   ` Gabriel Dos Reis
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Tobler @ 2002-12-31  4:03 UTC (permalink / raw)
  To: Christian Jönsson; +Cc: gcc

This patchlet from DJE helps on linuxppc and darwin. Though I don't know 
if correct.
Andreas
Index: parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.7
diff -c -p -r1.7 parser.c
*** parser.c	31 Dec 2002 00:11:47 -0000	1.7
--- parser.c	31 Dec 2002 02:10:44 -0000
*************** static void
*** 6459,6464 ****
--- 6459,6466 ----
   cp_parser_declaration_seq_opt (parser)
        cp_parser *parser;
   {
+   extern int pending_lang_change;
+
     while (true)
       {
         cp_token *token;


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function)
  2002-12-31  4:03 ` Andreas Tobler
@ 2002-12-31  7:13   ` Gabriel Dos Reis
  2002-12-31 10:45     ` Neil Booth
  0 siblings, 1 reply; 6+ messages in thread
From: Gabriel Dos Reis @ 2002-12-31  7:13 UTC (permalink / raw)
  To: Andreas Tobler; +Cc: Christian Jönsson, gcc, gcc-patches

Andreas Tobler <toa@pop.agri.ch> writes:

| This patchlet from DJE helps on linuxppc and darwin. Though I don't
| know if correct.

Thanks,  

I've committed the below.

-- Gaby

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/ChangeLog,v
retrieving revision 1.3104
diff -p -r1.3104 ChangeLog
*** ChangeLog	31 Dec 2002 00:11:46 -0000	1.3104
--- ChangeLog	31 Dec 2002 11:57:00 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2002-12-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+ 
+ 	* cp-tree.h (pending_lang_change): Declare.
+ 
  2002-12-30  Mark Mitchell  <mark@codesourcery.com>
  
  	* parser.c (cp_parser_context_free_list): New variable.
Index: cp-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
retrieving revision 1.788
diff -p -r1.788 cp-tree.h
*** cp-tree.h	30 Dec 2002 19:02:04 -0000	1.788
--- cp-tree.h	31 Dec 2002 11:57:03 -0000
*************** extern tree mangle_ref_init_variable    
*** 4427,4432 ****
--- 4427,4435 ----
  /* in dump.c */
  extern int cp_dump_tree                         PARAMS ((void *, tree));
  
+ /* in parser.c */
+ extern int pending_lang_change;
+ 
  /* -- end of C++ */
  
  #endif /* ! GCC_CP_TREE_H */

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function)
  2002-12-31  7:13   ` Gabriel Dos Reis
@ 2002-12-31 10:45     ` Neil Booth
  2002-12-31 10:52       ` Andreas Tobler
  2002-12-31 17:01       ` Gabriel Dos Reis
  0 siblings, 2 replies; 6+ messages in thread
From: Neil Booth @ 2002-12-31 10:45 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: Andreas Tobler, Christian J?nsson, gcc, gcc-patches

Gabriel Dos Reis wrote:-

> Index: cp-tree.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
> retrieving revision 1.788
> diff -p -r1.788 cp-tree.h
> *** cp-tree.h	30 Dec 2002 19:02:04 -0000	1.788
> --- cp-tree.h	31 Dec 2002 11:57:03 -0000
> *************** extern tree mangle_ref_init_variable    
> *** 4427,4432 ****
> --- 4427,4435 ----
>   /* in dump.c */
>   extern int cp_dump_tree                         PARAMS ((void *, tree));
>   
> + /* in parser.c */
> + extern int pending_lang_change;
> + 

Actually it's in c-lex.c.  Ugh.

Neil.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function)
  2002-12-31 10:45     ` Neil Booth
@ 2002-12-31 10:52       ` Andreas Tobler
  2002-12-31 17:01       ` Gabriel Dos Reis
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Tobler @ 2002-12-31 10:52 UTC (permalink / raw)
  To: Neil Booth; +Cc: Gabriel Dos Reis, Christian J?nsson, gcc, gcc-patches

Neil Booth wrote:
> Gabriel Dos Reis wrote:-
> 
> 
>>Index: cp-tree.h
>>===================================================================
>>RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
>>retrieving revision 1.788
>>diff -p -r1.788 cp-tree.h
>>*** cp-tree.h	30 Dec 2002 19:02:04 -0000	1.788
>>--- cp-tree.h	31 Dec 2002 11:57:03 -0000
>>*************** extern tree mangle_ref_init_variable    
>>*** 4427,4432 ****
>>--- 4427,4435 ----
>>  /* in dump.c */
>>  extern int cp_dump_tree                         PARAMS ((void *, tree));
>>  
>>+ /* in parser.c */
>>+ extern int pending_lang_change;
>>+ 
> 
> 
> Actually it's in c-lex.c.  Ugh.

For me on linuxppc the bootstrap went through.
Should do a make -k check. But I wait until next year since I fu** my 
firewire drive.

Andreas

P.s, happy new year.... !


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function)
  2002-12-31 10:45     ` Neil Booth
  2002-12-31 10:52       ` Andreas Tobler
@ 2002-12-31 17:01       ` Gabriel Dos Reis
  1 sibling, 0 replies; 6+ messages in thread
From: Gabriel Dos Reis @ 2002-12-31 17:01 UTC (permalink / raw)
  To: Neil Booth; +Cc: Andreas Tobler, Christian J?nsson, gcc, gcc-patches

Neil Booth <neil@daikokuya.co.uk> writes:

| Gabriel Dos Reis wrote:-
| 
| > Index: cp-tree.h
| > ===================================================================
| > RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
| > retrieving revision 1.788
| > diff -p -r1.788 cp-tree.h
| > *** cp-tree.h	30 Dec 2002 19:02:04 -0000	1.788
| > --- cp-tree.h	31 Dec 2002 11:57:03 -0000
| > *************** extern tree mangle_ref_init_variable    
| > *** 4427,4432 ****
| > --- 4427,4435 ----
| >   /* in dump.c */
| >   extern int cp_dump_tree                         PARAMS ((void *, tree));
| >   
| > + /* in parser.c */
| > + extern int pending_lang_change;
| > + 
| 
| Actually it's in c-lex.c.  Ugh.

This appears to correct the bootstrap breakage on x86 and PPC.  I
suspect Mark's recent patch would do what you want,

-- Gaby

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-12-31 22:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-31  3:59 Can't build gcc trunk on cygwin: cp/parser.c:6484: error: `pending_lang_change' undeclared (first use in this function) Christian Jönsson
2002-12-31  4:03 ` Andreas Tobler
2002-12-31  7:13   ` Gabriel Dos Reis
2002-12-31 10:45     ` Neil Booth
2002-12-31 10:52       ` Andreas Tobler
2002-12-31 17:01       ` Gabriel Dos Reis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).