diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-08-18 18:11:18 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-08-18 18:11:18 +0000 |
commit | 1c0cc57e79e12fd87530f9c6860ba32516eb35c0 (patch) | |
tree | ba20c4b0e0120a645cd25113492a883864a687e1 /gcc/tree.h | |
parent | 13c508d9917050ad79eca822b22a9eb1abf0bbc9 (diff) | |
download | gcc-1c0cc57e79e12fd87530f9c6860ba32516eb35c0.zip gcc-1c0cc57e79e12fd87530f9c6860ba32516eb35c0.tar.gz gcc-1c0cc57e79e12fd87530f9c6860ba32516eb35c0.tar.bz2 |
except.c (TYPE_HASH): Delete.
* except.c (TYPE_HASH): Delete.
* objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
HOST_WIDE_INT.
* tree.c (TYPE_HASH): Delete.
* tree.h (TYPE_HASH): Define.
ch:
* tree.c (TYPE_HASH): Moved to ../tree.h.
cp:
* decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
GNU_xref_start_scope and GNU_xref_end_scope.
* tree.c (TYPE_HASH): Moved to ../tree.h.
From-SVN: r45004
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -327,6 +327,10 @@ extern void tree_class_check_failed PARAMS ((const tree, int, In VECTOR_TYPE nodes, this is the type of the elements. */ #define TREE_TYPE(NODE) ((NODE)->common.type) +/* Here is how primitive or already-canonicalized types' hash codes + are made. */ +#define TYPE_HASH(TYPE) ((size_t) (TYPE) & 0777777) + /* Nodes are chained together for many purposes. Types are chained together to record them for being output to the debugger (see the function `chain_type'). |