From a26d328133ffd595a75aaec712706fec7066d389 Mon Sep 17 00:00:00 2001 From: kenner Date: Fri, 19 Mar 2004 14:34:47 +0000 Subject: * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook. * langhooks.h (struct lang_hooks_for_types): New field hash_types. * tree.c (debug_no_type_hash): Deleted. (type_hash_canon): Abort if passed a variant. Check lang_hooks.types.hash_types. (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE. (build_array_type): Remove unnecessary allocation of pointer type. (build_complex_type): Properly qualify resulting type. * ada/decl.c (debug_no_type_hash): Remove. (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it. * ada/misc.c (LANG_HOOK_HASH_TYPE): Redefine. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79684 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/langhooks.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/langhooks.h') diff --git a/gcc/langhooks.h b/gcc/langhooks.h index f2c879afd2c..b78dddca245 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -151,6 +151,11 @@ struct lang_hooks_for_types was used (or 0 if that isn't known) and TYPE is the type that was invalid. */ void (*incomplete_type_error) (tree value, tree type); + + /* Nonzero if types that are identical are to be hashed so that only + one copy is kept. If a language requires unique types for each + user-specified type, such as Ada, this should be set to TRUE. */ + bool hash_types; }; /* Language hooks related to decls and the symbol table. */ -- cgit v1.2.1