diff mbox

[gc-improv] gengtype cleanups after RTL support removal

Message ID 4D485655.7010501@gmail.com
State New
Headers show

Commit Message

Laurynas Biveinis Feb. 1, 2011, 6:52 p.m. UTC
Some minor stuff that slipped through the cracks the first time.

Tested with the other patch, will commit shortly to gc-improv.

2011-02-01  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	* Makefile.in (build/gengtype.o): Remove rtl.def and
	insn-notes.def from dependencies.

	* gengtype.c (CONST_DOUBLE_FORMAT, GENERATOR_FILE): Remove.
	(enum insn_note, note_insn_name): Remove.
diff mbox

Patch

Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in	(revision 169327)
+++ gcc/Makefile.in	(working copy)
@@ -3891,8 +3891,7 @@ 
 build/gengtype-state.o: gengtype-state.c gengtype.h $(BCONFIG_H)	\
   $(SYSTEM_H) errors.h
 build/gengtype.o : gengtype.c $(BCONFIG_H) $(SYSTEM_H) gengtype.h 	\
-  rtl.def insn-notes.def errors.h double-int.h $(HASHTAB_H)             \
-  $(OBSTACK_H) $(XREGEX_H)
+  errors.h double-int.h $(HASHTAB_H) $(OBSTACK_H) $(XREGEX_H)
 build/genmddeps.o: genmddeps.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h	\
   errors.h $(READ_MD_H)
 build/genmodes.o : genmodes.c $(BCONFIG_H) $(SYSTEM_H) errors.h		\
Index: gcc/gengtype.c
===================================================================
--- gcc/gengtype.c	(revision 169327)
+++ gcc/gengtype.c	(working copy)
@@ -832,33 +832,6 @@ 
 }
 
 
-/* We don't care how long a CONST_DOUBLE is.  */
-#define CONST_DOUBLE_FORMAT "ww"
-/* We don't want to see codes that are only for generator files.  */
-#undef GENERATOR_FILE
-
-/* We also need codes and names for insn notes (not register notes).
-   Note that we do *not* bias the note values here.  */
-enum insn_note
-{
-#define DEF_INSN_NOTE(NAME) NAME,
-#include "insn-notes.def"
-#undef DEF_INSN_NOTE
-
-  NOTE_INSN_MAX
-};
-
-/* We must allocate one more entry here, as we use NOTE_INSN_MAX as the
-   default field for line number notes.  */
-static const char *const note_insn_name[NOTE_INSN_MAX + 1] = {
-#define DEF_INSN_NOTE(NAME) #NAME,
-#include "insn-notes.def"
-#undef DEF_INSN_NOTE
-};
-
-#undef CONST_DOUBLE_FORMAT
-#define GENERATOR_FILE
-
 /* Handle `special("tree_exp")'.  This is a special case for
    field `operands' of struct tree_exp, which although it claims to contain
    pointers to trees, actually sometimes contains pointers to RTL too.