diff options
author | Richard Henderson <rth@cygnus.com> | 2000-05-06 15:30:13 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-05-06 15:30:13 -0700 |
commit | 3916d6d89c004a2e8b59b99ec2dd0b7ae3a01972 (patch) | |
tree | 51eb3b35d4bfb3e523bdf3eb12a95f8b995170ba /gcc/genrecog.c | |
parent | efdbc6f8fd6bfb88a8dfe05a3e8bf0c1347e2f4d (diff) | |
download | gcc-3916d6d89c004a2e8b59b99ec2dd0b7ae3a01972.tar.gz |
Makefile.in (gensupport.o): Compile for the host.
* Makefile.in (gensupport.o): Compile for the host.
(host-prefix gensuuprt.o): Remove.
(genflags.o): Depend on gensupport.h and OBSTACK_H.
(genattrtab.o): Likewise.
(gencodes.o): Depend on gensupport.h.
(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
(genpeep.o, genattr.o, genoutput.o): Likewise.
* gensupport.c (obstack, rtl_obstack): New.
(init_md_reader): Initialize rtl_obstack.
* gensupport.h (rtl_obstack): Declare.
(message_with_line): Declare.
* genattr.c: Remove all traces of obstack manipulation.
* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
* genattrtab.c (obstack, rtl_obstack): Remove.
(main): Don't init rtl_obstack.
* genflags.c: Likewise.
* genrecog.c (message_with_line): Move ...
* gensupport.c: ... here.
From-SVN: r33742
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 1f0c331b67b..3cc438ca49b 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -53,19 +53,13 @@ #include "hconfig.h" #include "system.h" #include "rtl.h" -#include "obstack.h" #include "errors.h" #include "gensupport.h" + #define OUTPUT_LABEL(INDENT_STRING, LABEL_NUMBER) \ printf("%sL%d: ATTRIBUTE_UNUSED_LABEL\n", (INDENT_STRING), (LABEL_NUMBER)) -static struct obstack obstack; -struct obstack *rtl_obstack = &obstack; - -#define obstack_chunk_alloc xmalloc -#define obstack_chunk_free free - /* Holds an array of names indexed by insn_code_number. */ static char **insn_name_ptr = 0; static int insn_name_ptr_size = 0; @@ -231,9 +225,6 @@ static const char * special_mode_pred_table[] = { #define NUM_SPECIAL_MODE_PREDS \ (sizeof (special_mode_pred_table) / sizeof (special_mode_pred_table[0])) -static void message_with_line - PARAMS ((int, const char *, ...)) ATTRIBUTE_PRINTF_2; - static struct decision *new_decision PARAMS ((const char *, struct decision_head *)); static struct decision_test *new_decision_test @@ -317,29 +308,6 @@ extern void debug_decision extern void debug_decision_list PARAMS ((struct decision *)); -static void -message_with_line VPARAMS ((int lineno, const char *msg, ...)) -{ -#ifndef ANSI_PROTOTYPES - int lineno; - const char *msg; -#endif - va_list ap; - - VA_START (ap, msg); - -#ifndef ANSI_PROTOTYPES - lineno = va_arg (ap, int); - msg = va_arg (ap, const char *); -#endif - - fprintf (stderr, "%s:%d: ", read_rtx_filename, lineno); - vfprintf (stderr, msg, ap); - fputc ('\n', stderr); - - va_end (ap); -} - /* Create a new node in sequence after LAST. */ static struct decision * @@ -2509,7 +2477,6 @@ main (argc, argv) register int c; progname = "genrecog"; - obstack_init (rtl_obstack); memset (&recog_tree, 0, sizeof recog_tree); memset (&split_tree, 0, sizeof split_tree); |