From 4db83042b6d7152ef8a5d1bbc0e66290c1c2fe93 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 15 Apr 1998 09:23:14 +0000 Subject: [PATCH] Link in print-rtl.o to all gen* programs except gengenrtl From-SVN: r19222 --- gcc/ChangeLog | 9 +++++++++ gcc/Makefile.in | 40 ++++++++++++++++++++-------------------- gcc/genattr.c | 3 +++ gcc/gencodes.c | 3 +++ gcc/genconfig.c | 3 +++ gcc/genemit.c | 3 +++ gcc/genoutput.c | 3 +++ gcc/genpeep.c | 3 +++ gcc/genrecog.c | 3 +++ 9 files changed, 50 insertions(+), 20 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 79918acdad7d..821a51df1e7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +Wed Apr 15 12:10:18 1998 Michael Meissner + + * Makefile.in (gen{config,flags,codes,emit}): Link in host print-rtl.o. + (gen{extract,peep,opinit,output}): Ditto. + + * gen{attr,codes,config,emit,output}.c (insn_attr_name): Provide a + global definition so print-rtl.o can be linked in. + * gen{peep,recog}.c (insn_attr_name): Ditto. + Tue Apr 14 07:30:57 1998 K. Richard Pixley * fixincludes: discard empty C++ comments, as found in sys/time.h diff --git a/gcc/Makefile.in b/gcc/Makefile.in index e7590bc78f4f..8c26e9b05c6d 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1612,65 +1612,65 @@ $(MD_FILE): $(MD_DEPS) $(MD_CPP) $(MD_CPPFLAGS) $(md_file) | sed 's/^# /; /g' > tmp-$@ mv tmp-$@ $@ -genconfig : genconfig.o $(HOST_RTL) $(HOST_LIBDEPS) +genconfig : genconfig.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genconfig.o $(HOST_RTL) $(HOST_LIBS) + genconfig.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genconfig.o : genconfig.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c -genflags : genflags.o $(HOST_RTL) $(HOST_LIBDEPS) +genflags : genflags.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genflags.o $(HOST_RTL) $(HOST_LIBS) + genflags.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genflags.o : genflags.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c -gencodes : gencodes.o $(HOST_RTL) $(HOST_LIBDEPS) +gencodes : gencodes.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - gencodes.o $(HOST_RTL) $(HOST_LIBS) + gencodes.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) gencodes.o : gencodes.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c -genemit : genemit.o $(HOST_RTL) $(HOST_LIBDEPS) +genemit : genemit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genemit.o $(HOST_RTL) $(HOST_LIBS) + genemit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genemit.o : genemit.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c -genopinit : genopinit.o $(HOST_RTL) $(HOST_LIBDEPS) +genopinit : genopinit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genopinit.o $(HOST_RTL) $(HOST_LIBS) + genopinit.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genopinit.o : genopinit.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c -genrecog : genrecog.o $(HOST_RTL) $(HOST_LIBDEPS) +genrecog : genrecog.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genrecog.o $(HOST_RTL) $(HOST_LIBS) + genrecog.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genrecog.o : genrecog.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c -genextract : genextract.o $(HOST_RTL) $(HOST_LIBDEPS) +genextract : genextract.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genextract.o $(HOST_RTL) $(HOST_LIBS) + genextract.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genextract.o : genextract.c $(RTL_H) $(build_xm_file) system.h insn-config.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genextract.c -genpeep : genpeep.o $(HOST_RTL) $(HOST_LIBDEPS) +genpeep : genpeep.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genpeep.o $(HOST_RTL) $(HOST_LIBS) + genpeep.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genpeep.o : genpeep.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c -genattr : genattr.o $(HOST_RTL) $(HOST_LIBDEPS) +genattr : genattr.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genattr.o $(HOST_RTL) $(HOST_LIBS) + genattr.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genattr.o : genattr.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c @@ -1682,9 +1682,9 @@ genattrtab : genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL) $(HOST_LIBDE genattrtab.o : genattrtab.c $(RTL_H) $(build_xm_file) system.h insn-config.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattrtab.c -genoutput : genoutput.o $(HOST_RTL) $(HOST_LIBDEPS) +genoutput : genoutput.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBDEPS) $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \ - genoutput.o $(HOST_RTL) $(HOST_LIBS) + genoutput.o $(HOST_RTL) $(HOST_PRINT) $(HOST_LIBS) genoutput.o : genoutput.c $(RTL_H) $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c diff --git a/gcc/genattr.c b/gcc/genattr.c index fe3457c45ec9..7f900be69941 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -35,6 +35,9 @@ char *xmalloc PROTO((unsigned)); static void fatal (); void fancy_abort PROTO((void)); +/* Define this so we can link with print-rtl.o to get debug_rtx function. */ +char **insn_name_ptr = 0; + /* A range of values. */ struct range diff --git a/gcc/gencodes.c b/gcc/gencodes.c index 677c3446aeaa..c74ae0a6e9f4 100644 --- a/gcc/gencodes.c +++ b/gcc/gencodes.c @@ -37,6 +37,9 @@ char *xmalloc PROTO((unsigned)); static void fatal (); void fancy_abort PROTO((void)); +/* Define this so we can link with print-rtl.o to get debug_rtx function. */ +char **insn_name_ptr = 0; + static int insn_code_number; static void gen_insn PROTO((rtx)); diff --git a/gcc/genconfig.c b/gcc/genconfig.c index ffcb5c38b886..ce85c7a52d2a 100644 --- a/gcc/genconfig.c +++ b/gcc/genconfig.c @@ -31,6 +31,9 @@ struct obstack *rtl_obstack = &obstack; #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free +/* Define this so we can link with print-rtl.o to get debug_rtx function. */ +char **insn_name_ptr = 0; + /* flags to determine output of machine description dependent #define's. */ static int max_recog_operands; /* Largest operand number seen. */ static int max_dup_operands; /* Largest number of match_dup in any insn. */ diff --git a/gcc/genemit.c b/gcc/genemit.c index 62094845fade..d239ba65febb 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -34,6 +34,9 @@ char *xmalloc PROTO((unsigned)); static void fatal (); void fancy_abort PROTO((void)); +/* Define this so we can link with print-rtl.o to get debug_rtx function. */ +char **insn_name_ptr = 0; + static int max_opno; static int max_dup_opno; static int register_constraints; diff --git a/gcc/genoutput.c b/gcc/genoutput.c index 85cca69c5402..490ecb47c5af 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -115,6 +115,9 @@ static void mybcopy (); static void mybzero (); static int n_occurrences PROTO((int, char *)); +/* Define this so we can link with print-rtl.o to get debug_rtx function. */ +char **insn_name_ptr = 0; + /* insns in the machine description are assigned sequential code numbers that are used by insn-recog.c (produced by genrecog) to communicate to insn-output.c (produced by this program). */ diff --git a/gcc/genpeep.c b/gcc/genpeep.c index ab21d401fa1a..805e9efc5ae4 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -30,6 +30,9 @@ struct obstack *rtl_obstack = &obstack; #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free +/* Define this so we can link with print-rtl.o to get debug_rtx function. */ +char **insn_name_ptr = 0; + /* While tree-walking an instruction pattern, we keep a chain of these `struct link's to record how to get down to the current position. In each one, POS is the operand number, diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 6c158d6ce8f6..b015f81d5e11 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -57,6 +57,9 @@ struct obstack *rtl_obstack = &obstack; #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free +/* Define this so we can link with print-rtl.o to get debug_rtx function. */ +char **insn_name_ptr = 0; + /* Data structure for a listhead of decision trees. The alternatives to a node are kept in a doublely-linked list so we can easily add nodes to the proper place when merging. */