Commit 4db83042 by Michael Meissner Committed by Michael Meissner

Link in print-rtl.o to all gen* programs except gengenrtl

From-SVN: r19222
parent 9aeba741
Wed Apr 15 12:10:18 1998 Michael Meissner <meissner@cygnus.com>
* 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 <rich@kyoto.noir.com> Tue Apr 14 07:30:57 1998 K. Richard Pixley <rich@kyoto.noir.com>
* fixincludes: discard empty C++ comments, as found in sys/time.h * fixincludes: discard empty C++ comments, as found in sys/time.h
......
...@@ -1612,65 +1612,65 @@ $(MD_FILE): $(MD_DEPS) ...@@ -1612,65 +1612,65 @@ $(MD_FILE): $(MD_DEPS)
$(MD_CPP) $(MD_CPPFLAGS) $(md_file) | sed 's/^# /; /g' > tmp-$@ $(MD_CPP) $(MD_CPPFLAGS) $(md_file) | sed 's/^# /; /g' > tmp-$@
mv 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 $@ \ $(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 genconfig.o : genconfig.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genconfig.c $(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 $@ \ $(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 genflags.o : genflags.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genflags.c $(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 $@ \ $(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 gencodes.o : gencodes.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencodes.c $(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 $@ \ $(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 genemit.o : genemit.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genemit.c $(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 $@ \ $(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 genopinit.o : genopinit.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genopinit.c $(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 $@ \ $(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 genrecog.o : genrecog.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genrecog.c $(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 $@ \ $(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 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 $(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 $@ \ $(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 genpeep.o : genpeep.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genpeep.c $(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 $@ \ $(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 genattr.o : genattr.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genattr.c $(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 ...@@ -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 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 $(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 $@ \ $(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 genoutput.o : genoutput.c $(RTL_H) $(build_xm_file) system.h
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/genoutput.c
......
...@@ -35,6 +35,9 @@ char *xmalloc PROTO((unsigned)); ...@@ -35,6 +35,9 @@ char *xmalloc PROTO((unsigned));
static void fatal (); static void fatal ();
void fancy_abort PROTO((void)); 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. */ /* A range of values. */
struct range struct range
......
...@@ -37,6 +37,9 @@ char *xmalloc PROTO((unsigned)); ...@@ -37,6 +37,9 @@ char *xmalloc PROTO((unsigned));
static void fatal (); static void fatal ();
void fancy_abort PROTO((void)); 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 int insn_code_number;
static void gen_insn PROTO((rtx)); static void gen_insn PROTO((rtx));
......
...@@ -31,6 +31,9 @@ struct obstack *rtl_obstack = &obstack; ...@@ -31,6 +31,9 @@ struct obstack *rtl_obstack = &obstack;
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #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. */ /* flags to determine output of machine description dependent #define's. */
static int max_recog_operands; /* Largest operand number seen. */ static int max_recog_operands; /* Largest operand number seen. */
static int max_dup_operands; /* Largest number of match_dup in any insn. */ static int max_dup_operands; /* Largest number of match_dup in any insn. */
......
...@@ -34,6 +34,9 @@ char *xmalloc PROTO((unsigned)); ...@@ -34,6 +34,9 @@ char *xmalloc PROTO((unsigned));
static void fatal (); static void fatal ();
void fancy_abort PROTO((void)); 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_opno;
static int max_dup_opno; static int max_dup_opno;
static int register_constraints; static int register_constraints;
......
...@@ -115,6 +115,9 @@ static void mybcopy (); ...@@ -115,6 +115,9 @@ static void mybcopy ();
static void mybzero (); static void mybzero ();
static int n_occurrences PROTO((int, char *)); 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 /* insns in the machine description are assigned sequential code numbers
that are used by insn-recog.c (produced by genrecog) to communicate that are used by insn-recog.c (produced by genrecog) to communicate
to insn-output.c (produced by this program). */ to insn-output.c (produced by this program). */
......
...@@ -30,6 +30,9 @@ struct obstack *rtl_obstack = &obstack; ...@@ -30,6 +30,9 @@ struct obstack *rtl_obstack = &obstack;
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #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 /* While tree-walking an instruction pattern, we keep a chain
of these `struct link's to record how to get down to the of these `struct link's to record how to get down to the
current position. In each one, POS is the operand number, current position. In each one, POS is the operand number,
......
...@@ -57,6 +57,9 @@ struct obstack *rtl_obstack = &obstack; ...@@ -57,6 +57,9 @@ struct obstack *rtl_obstack = &obstack;
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #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 /* 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 a node are kept in a doublely-linked list so we can easily add nodes
to the proper place when merging. */ to the proper place when merging. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment