This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
objc bootstrap failure related to recent cpplib init changes
- To: brolley at cygnus dot com
- Subject: objc bootstrap failure related to recent cpplib init changes
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 10 Dec 1998 13:49:47 -0500 (EST)
- Cc: egcs-patches at cygnus dot com
Dave,
I got the following error building egcs CVS last night. I
used the following patch to fix it, but I'd like you to double check it.
Thanks,
--Kaveh
> stage1/xgcc -Bstage1/ -B/usr/local/alphaev5-dec-osf4.0b/bin/ -DIN_GCC
> -W -Wall -O2 -g -DHAVE_CONFIG_H -DHAIFA -I. -I. -I./config
> -I./../include -I./objc -c ./objc/objc-act.c
> ./objc/objc-act.c: In function `lang_init_options':
> ./objc/objc-act.c:601: `parse_in' undeclared (first use in this function)
> ./objc/objc-act.c:601: (Each undeclared identifier is reported only once
> ./objc/objc-act.c:601: for each function it appears in.)
> ./objc/objc-act.c:602: `parse_options' undeclared (first use in this function)
Thu Dec 10 13:41:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* objc/objc-act.c (lang_init_options): Wrap cpplib initialization
in USE_CPPLIB.
--- egcs-CVS19981209/gcc/objc/objc-act.c~ Wed Dec 9 19:41:46 1998
+++ egcs-CVS19981209/gcc/objc/objc-act.c Thu Dec 10 13:41:21 1998
@@ -598,9 +598,11 @@ extern char *yy_cur;
void
lang_init_options ()
{
+#if USE_CPPLIB
cpp_reader_init (&parse_in);
parse_in.opts = &parse_options;
cpp_options_init (&parse_options);
+#endif
}
void
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Icon CMT Corp.