This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Unsatisfied symbols: cpp_register_pragma (code), cpp_register_pragma_space (code)
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Subject: Re: Unsatisfied symbols: cpp_register_pragma (code), cpp_register_pragma_space (code)
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 8 Sep 2000 13:29:13 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> 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 <dave@hiauly1.hia.nrc.ca>
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 *