summaryrefslogtreecommitdiff
path: root/gcc/gencodes.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-09 17:11:00 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-09 17:11:00 +0000
commite23a6527d76e7d7d1e4b1a2d2787681b0202bc9a (patch)
treec707f6fbe6eee894928f18532faad363c22b3b19 /gcc/gencodes.c
parent45c2202bc22116481baf8d8fd6cb3af45627a784 (diff)
downloadgcc-e23a6527d76e7d7d1e4b1a2d2787681b0202bc9a.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44743 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gencodes.c')
-rw-r--r--gcc/gencodes.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/gcc/gencodes.c b/gcc/gencodes.c
index 7e4f9644263..2610a12325f 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;
-}