This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix build with -fno-common
- To: gcc-patches at gcc dot gnu dot org
- Subject: fix build with -fno-common
- From: Richard Henderson <rth at twiddle dot net>
- Date: Tue, 11 Sep 2001 13:20:48 -0700
Two missing extern's.
r~
f/
* parse.c (finput): Mark extern.
java/
* parse.h (ctxp_for_generation): Mark extern.
Index: gcc/f/parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/parse.c,v
retrieving revision 1.8
diff -c -p -d -u -r1.8 parse.c
--- parse.c 2000/06/21 20:11:14 1.8
+++ parse.c 2001/09/11 20:14:33
@@ -34,7 +34,7 @@ the Free Software Foundation, 59 Temple
void
main (int argc, char *argv[])
#elif FFECOM_targetCURRENT == FFECOM_targetGCC
-FILE *finput;
+extern FILE *finput;
int
yyparse ()
Index: gcc/java/parse.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.h,v
retrieving revision 1.75
diff -c -p -d -u -r1.75 parse.h
--- parse.h 2001/07/31 22:20:05 1.75
+++ parse.h 2001/09/11 20:14:34
@@ -934,6 +934,6 @@ ATTRIBUTE_NORETURN
extern void java_expand_classes PARAMS ((void));
extern struct parser_ctxt *ctxp;
-struct parser_ctxt *ctxp_for_generation;
+extern struct parser_ctxt *ctxp_for_generation;
#endif /* ! GCC_JAVA_PARSE_H */