Commit a078edf8 by Neil Booth Committed by Neil Booth

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
parent b4cc41b8
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.
......
......@@ -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++);
......
......@@ -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);
}
}
......
......@@ -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).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment