From 3119c950bd8c5f06ee2d61c2e8db88b98a7f8f0f Mon Sep 17 00:00:00 2001 From: bryce Date: Thu, 22 Nov 2001 02:33:02 +0000 Subject: * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h. (lang_type_quals): Declare. (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to retrieve language-specific qualifiers for a type node, instead of C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of lang_dump_tree. * tree-dump.h: Rename from c-dump.h. * c-common.h (C_TYPE_QUALS): Removed. Move declarations for tree-dump.c interface to... * tree.h: ... here. Remove lang_dump_tree. * langhooks.h (struct lang_hooks_for_tree_dump): New. (struct lang_hooks): Add tree_dump hooks. * langhooks.c (lhd_tree_dump_dump_tree): New function. (lhd_tree_dump_type_quals): New function. * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals): Declare. (LANG_HOOKS_INITIALIZER): Add tree_dump hooks. * Makefile.in: Move tree-dump.o to language-independent back-end. cp: * cp-tree.h (CP_TYPE_QUALS): Removed. * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree. * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN. * dump.c (cp_dump_tree): Use void* dump_info argument to match lang-hooks prototype. * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c, rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to CP_TYPE_QUALS changed to cp_type_quals. * Make-lang.in: References to c-dump.h changed to tree-dump.h. (CXX_C_OBJS): Remove c-dump.o. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47257 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-common.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index 7ccaef7ee8f..b289cb8b24f 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -457,14 +457,6 @@ extern int warn_long_long; #define C_TYPE_FUNCTION_P(type) \ (TREE_CODE (type) == FUNCTION_TYPE) -/* Return the qualifiers that apply to this type. In C++, that means - descending through array types. Note that this macro evaluates its - arguments more than once. */ -#define C_TYPE_QUALS(TYPE) \ - (TYPE_QUALS ((TREE_CODE (TYPE) == ARRAY_TYPE \ - && c_language == clk_cplusplus) \ - ? strip_array_types (TYPE) : TYPE)) - /* For convenience we define a single macro to identify the class of object or incomplete types. */ #define C_TYPE_OBJECT_OR_INCOMPLETE_P(type) \ @@ -819,45 +811,6 @@ extern int c_safe_from_p PARAMS ((rtx, tree)); extern int c_unsafe_for_reeval PARAMS ((tree)); -/* In c-dump.c */ - -/* Different tree dump places. When you add new tree dump places, - extend the DUMP_FILES array in c-dump.c */ -enum tree_dump_index -{ - TDI_all, /* dump the whole translation unit */ - TDI_class, /* dump class hierarchy */ - TDI_original, /* dump each function before optimizing it */ - TDI_optimized, /* dump each function after optimizing it */ - TDI_inlined, /* dump each function after inlining - within it. */ - TDI_end -}; - -/* Bit masks to control tree dumping. Not all values are applicable to - all tree dumps. Add new ones at the end. When you define new - values, extend the DUMP_OPTIONS array in c-dump.c */ -#define TDF_ADDRESS (1 << 0) /* dump node addresses */ -#define TDF_SLIM (1 << 1) /* don't go wild following links */ - -typedef struct dump_info *dump_info_p; - -/* A callback function used dump language-specific parts of tree - nodes. Returns non-zero if it does not want the usual dumping of - the second argument. */ - -typedef int (*dump_tree_fn) PARAMS ((dump_info_p, tree)); - -extern dump_tree_fn lang_dump_tree; - -extern int dump_flag PARAMS ((dump_info_p, int, tree)); -extern int dump_enabled_p PARAMS ((enum tree_dump_index)); -extern FILE *dump_begin PARAMS ((enum tree_dump_index, int *)); -extern void dump_end PARAMS ((enum tree_dump_index, FILE *)); -extern void dump_node PARAMS ((tree, int, FILE *)); -extern int dump_switch_p PARAMS ((const char *)); -extern const char *dump_flag_name PARAMS ((enum tree_dump_index)); - /* Information recorded about each file examined during compilation. */ struct c_fileinfo -- cgit v1.2.1