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/genattrtab.c | |
parent | efdbc6f8fd6bfb88a8dfe05a3e8bf0c1347e2f4d (diff) | |
download | gcc-3916d6d89c004a2e8b59b99ec2dd0b7ae3a01972.zip gcc-3916d6d89c004a2e8b59b99ec2dd0b7ae3a01972.tar.gz gcc-3916d6d89c004a2e8b59b99ec2dd0b7ae3a01972.tar.bz2 |
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/genattrtab.c')
-rw-r--r-- | gcc/genattrtab.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index b1be9a0..2c09e3d 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -111,8 +111,7 @@ Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "errors.h" -static struct obstack obstack, obstack1, obstack2; -struct obstack *rtl_obstack = &obstack; +static struct obstack obstack1, obstack2; struct obstack *hash_obstack = &obstack1; struct obstack *temp_obstack = &obstack2; @@ -5978,9 +5977,6 @@ main (argc, argv) if (argc <= 1) fatal ("No input file name."); - if (init_md_reader (argv[1]) != SUCCESS_EXIT_CODE) - return (FATAL_EXIT_CODE); - #if defined (RLIMIT_STACK) && defined (HAVE_GETRLIMIT) && defined (HAVE_SETRLIMIT) /* Get rid of any avoidable limit on stack size. */ { @@ -5993,8 +5989,9 @@ main (argc, argv) } #endif - progname = "genattrtab"; - obstack_init (rtl_obstack); + if (init_md_reader (argv[1]) != SUCCESS_EXIT_CODE) + return (FATAL_EXIT_CODE); + obstack_init (hash_obstack); obstack_init (temp_obstack); |