langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri, 19 Mar 2004 14:34:47 +0000 (14:34 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 19 Mar 2004 14:34:47 +0000 (09:34 -0500)
commit7548281d739c119cf7dfc9c83bc52dfc36083f8c
tree046f6fd5dcc59b0ff82a69550dd6265483af9478
parent32f4f7197f9c12930a4933fc92215fcc45af670f
langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.

* 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.

From-SVN: r79684
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/decl.c
gcc/ada/misc.c
gcc/langhooks-def.h
gcc/langhooks.h
gcc/tree.c