diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-05-20 08:13:32 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-05-20 08:13:32 +0000 |
commit | a078edf8139869ae6833c7e5d5e832d3c656dacc (patch) | |
tree | e7f5e349bc9b9f942554e30757260a575d2223fb | |
parent | b4cc41b8149db0a8decb0c31fd11c1aedb907c5d (diff) | |
download | gcc-a078edf8139869ae6833c7e5d5e832d3c656dacc.zip gcc-a078edf8139869ae6833c7e5d5e832d3c656dacc.tar.gz gcc-a078edf8139869ae6833c7e5d5e832d3c656dacc.tar.bz2 |
hashtable.c (calc_hash): Fix HASHSTEP definition.
* hashtable.c (calc_hash): Fix HASHSTEP definition.
* stringpool.c (make_identifier): No statistics here anymore.
* objc-act.c (steup_string_decl): Remove redundant check.
From-SVN: r42337
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/hashtable.c | 2 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 7 | ||||
-rw-r--r-- | gcc/stringpool.c | 3 |
4 files changed, 8 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a740a65..8d5c4f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2001-05-20 Neil Booth <neil@daikokuya.demon.co.uk> + * hashtable.c (calc_hash): Fix HASHSTEP definition. + * stringpool.c (make_identifier): No statistics here anymore. + * objc-act.c (steup_string_decl): Remove redundant check. + +2001-05-20 Neil Booth <neil@daikokuya.demon.co.uk> + * Makefile.in (OBJS, LIBCPP_OBJS, LIBCPP_DEPS, cpplib.o, cpphash.o, fix-header): Update. (hashtable.o): New target. diff --git a/gcc/hashtable.c b/gcc/hashtable.c index f77eb7f..82c3a9e 100644 --- a/gcc/hashtable.c +++ b/gcc/hashtable.c @@ -64,7 +64,7 @@ calc_hash (str, len) { unsigned int n = len; unsigned int r = 0; -#define HASHSTEP(r, c) ((r) * 67 + (c - 113)); +#define HASHSTEP(r, c) ((r) * 67 + ((c) - 113)); while (n--) r = HASHSTEP (r, *str++); diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 81e1619..27c4fd7 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1267,12 +1267,7 @@ setup_string_decl () if (!string_class_decl) { if (!constant_string_global_id) - { - constant_string_global_id = - get_identifier (STRING_OBJECT_GLOBAL_NAME); - if (constant_string_global_id == NULL_TREE) - return; - } + constant_string_global_id = get_identifier (STRING_OBJECT_GLOBAL_NAME); string_class_decl = lookup_name (constant_string_global_id); } } diff --git a/gcc/stringpool.c b/gcc/stringpool.c index 6d44005..0828bc0 100644 --- a/gcc/stringpool.c +++ b/gcc/stringpool.c @@ -114,9 +114,6 @@ make_identifier (node) IDENTIFIER_POINTER (node)); TREE_SET_CODE (node, IDENTIFIER_NODE); -#ifdef GATHER_STATISTICS - id_string_size += IDENTIFIER_LENGTH (node); -#endif } /* Return an IDENTIFIER_NODE whose name is TEXT (a null-terminated string). |