diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2001-08-09 17:11:00 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-08-09 17:11:00 +0000 |
commit | 1b0c37d730cd2bda3fa69befcb77e1ae11705219 (patch) | |
tree | c707f6fbe6eee894928f18532faad363c22b3b19 /gcc/gencodes.c | |
parent | a734f2a306418b3d017f8f42ff11296b5c857652 (diff) | |
download | gcc-1b0c37d730cd2bda3fa69befcb77e1ae11705219.zip gcc-1b0c37d730cd2bda3fa69befcb77e1ae11705219.tar.gz gcc-1b0c37d730cd2bda3fa69befcb77e1ae11705219.tar.bz2 |
Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
* Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
(CONFIG_H, TCONFIG_H, TM_P_H): Update.
(GEN, STAGESTUFF): Add new files.
(insn-constants.h, s-constants, tm-preds.h, s-preds,
genconstants, genpreds, genconstants.o, genpreds.o): New rules.
(hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
* mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
as well as insn-codes.h and insn-flags.h in config.h; and no
extra headers in tconfig.h and hconfig.h.
* gencodes.c: Eliminate code to generate predicate declarations
or #defines for md-file constants.
* genconstants.c, genpreds.c: New files.
* i386.md: Re-order guard expressions such that TARGET_64BIT
comes first, when this permits better optimization. Add
TARGET_64BIT to more x86-64 patterns. Add comment explaining
why this is desirable.
From-SVN: r44743
Diffstat (limited to 'gcc/gencodes.c')
-rw-r--r-- | gcc/gencodes.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gcc/gencodes.c b/gcc/gencodes.c index 7e4f964..2610a12 100644 --- a/gcc/gencodes.c +++ b/gcc/gencodes.c @@ -28,12 +28,9 @@ Boston, MA 02111-1307, USA. */ #include "errors.h" #include "gensupport.h" - static int insn_code_number; static void gen_insn PARAMS ((rtx)); -static void output_predicate_decls PARAMS ((void)); -static int print_md_constant PARAMS ((void **, void *)); static void gen_insn (insn) @@ -47,30 +44,6 @@ gen_insn (insn) insn_code_number); } -/* Print out declarations for all predicates mentioned in - PREDICATE_CODES. */ - -static void -output_predicate_decls () -{ -#ifdef PREDICATE_CODES - static struct { - const char *name; - RTX_CODE codes[NUM_RTX_CODE]; - } predicate[] = { - PREDICATE_CODES - }; - size_t i; - - putc ('\n', stdout); - puts ("struct rtx_def;\n#include \"machmode.h\"\n"); - for (i = 0; i < sizeof predicate / sizeof *predicate; i++) - printf ("extern int %s PARAMS ((struct rtx_def *, enum machine_mode));\n", - predicate[i].name); - putc ('\n', stdout); -#endif -} - extern int main PARAMS ((int, char **)); int @@ -114,10 +87,6 @@ main (argc, argv) printf ("\n#define MAX_INSN_CODE ((int) CODE_FOR_nothing)\n\n"); - traverse_md_constants (print_md_constant, stdout); - - output_predicate_decls (); - puts("\n#endif /* GCC_INSN_CODES_H */"); if (ferror (stdout) || fflush (stdout) || fclose (stdout)) @@ -134,18 +103,3 @@ get_insn_name (code) { return NULL; } - -/* Called via traverse_md_constants; emit a #define for - the current constant definition. */ - -static int -print_md_constant (slot, info) - void **slot; - void *info; -{ - struct md_constant *def = *slot; - FILE *file = info; - - fprintf (file, "#define %s %s\n", def->name, def->value); - return 1; -} |