This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Using insn-codes.h only where needed
- To: Zack Weinberg <zackw at panix dot com>
- Subject: Re: Using insn-codes.h only where needed
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 13 Aug 2001 01:06:22 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010813011033.A7922@panix.com>
On Mon, Aug 13, 2001 at 01:10:33AM -0400, Zack Weinberg wrote:
> * expr.h: Split out optab- and libfunc-related code to...
> * optabs.h, libfuncs.h: ... these new headers.
>
> * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
> (OPTABS_H): New.
> (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
> dependencies.
> * mkconfig.sh: Don't include insn-codes.h from config.h.
>
> * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
> enum insn_code is available. Move reload_in_optab and
> reload_out_optab array declarations to optabs.h.
> * regmove.c (gen_add3_insn): Move to optabs.c, export from
> there, prototype in expr.h.
> * gencodes.c: Cleanup: zap global variables, don't use
> printf where puts will do, don't bother defining MAX_INSN_CODE
> which nothing uses, let CODE_FOR_nothing get its value implicitly.
>
> * genemit.c, genopinit.c: Include optabs.h in generated file.
> * genoutput.c: Include insn-codes.h in generated file.
> * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
> expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
> reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
> config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
> config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
> config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
> Include optabs.h.
> * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
> optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
> config/m88k/m88k.c, config/sparc/sparc.c:
> Include libfuncs.h.
> * reload.c: Include expr.h and optabs.h before reload.h.
> * config/alpha/alpha.c: Include tree.h before reload.h.
> * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
> and reload.h in that order.
> * config/sparc/sparc.c: Include debug.h.
> * recog.c: Include insn-codes.h.
>
> cp:
> * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
> * except.c: Include libfuncs.h.
> java:
> * Make-lang.in (java/decl.o): Update dependencies.
> * decl.c: Include libfuncs.h, don't include toplev.h.
Ok.
r~