From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John David Anglin" To: dave@hiauly1.hia.nrc.ca (John David Anglin) Cc: gcc-bugs@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: Unsatisfied symbols: cpp_register_pragma (code), cpp_register_pragma_space (code) Date: Fri, 08 Sep 2000 10:29:00 -0000 Message-id: <200009081729.NAA07730@hiauly1.hia.nrc.ca> References: X-SW-Source: 2000-09/msg00288.html > With todays cvs source, the following build error occured under hpux 10.20: > > ../stage1/xgcc -B../stage1/ -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -DIN_GCC -g -O3 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -W -Wall -o ../cc1plus \ > call.o decl.o errfn.o expr.o pt.o typeck2.o class.o decl2.o error.o lex.o parse.o ptree.o rtti.o spew.o typeck.o cvt.o except.o friend.o init.o method.o search.o semantics.o tree.o xref.o repo.o dump.o optimize.o mangle.o ../c-common.o ../c-pragma.o ../c-semantics.o ../c-lex.o ../toplev.o ../libbackend.a ../intl/libintl.a ../../libiberty/libiberty.a > /usr/ccs/bin/ld: Unsatisfied symbols: > cpp_register_pragma (code) > cpp_register_pragma_space (code) Here is an untested patch for review. Dave -- J. David Anglin dave.anglin@nrc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6605) 2000-09-08 J. David Anglin lex.c (init_cp_pragma): Don't call cpp_register_pragma or cpp_register_pragma_space if HANDLE_GENERIC_PRAGMAS is not defined. --- lex.c.orig Thu Sep 7 12:43:48 2000 +++ lex.c Fri Sep 8 13:17:57 2000 @@ -681,6 +681,7 @@ static void init_cp_pragma () { +#ifdef HANDLE_GENERIC_PRAGMAS #if USE_CPPLIB #define pfile &parse_in #else @@ -697,6 +698,7 @@ cpp_register_pragma (pfile, "GCC", "interface", handle_pragma_interface); cpp_register_pragma (pfile, "GCC", "implementation", handle_pragma_implementation); +#endif /* HANDLE_GENERIC_PRAGMAS */ } const char *