aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c4
-rw-r--r--gcc/tree.h2
3 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 39fca53..d25241f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
+
+ * tree.c (type_hash_lookup, type_hash_add): Make static.
+ * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
+
2013-04-09 Richard Biener <rguenther@suse.de>
* tree.h (unsave_expr_now): Remove.
diff --git a/gcc/tree.c b/gcc/tree.c
index 65bc15f..078caae 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -6293,7 +6293,7 @@ type_hash_hash (const void *item)
/* Look in the type hash table for a type isomorphic to TYPE.
If one is found, return it. Otherwise return 0. */
-tree
+static tree
type_hash_lookup (hashval_t hashcode, tree type)
{
struct type_hash *h, in;
@@ -6315,7 +6315,7 @@ type_hash_lookup (hashval_t hashcode, tree type)
/* Add an entry to the type-hash-table
for a type TYPE whose hash code is HASHCODE. */
-void
+static void
type_hash_add (hashval_t hashcode, tree type)
{
struct type_hash *h;
diff --git a/gcc/tree.h b/gcc/tree.h
index f30361a..aa424c0 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -5928,8 +5928,6 @@ extern hashval_t iterative_hash_host_wide_int (HOST_WIDE_INT, hashval_t);
extern int compare_tree_int (const_tree, unsigned HOST_WIDE_INT);
extern int type_list_equal (const_tree, const_tree);
extern int chain_member (const_tree, const_tree);
-extern tree type_hash_lookup (unsigned int, tree);
-extern void type_hash_add (unsigned int, tree);
extern int simple_cst_list_equal (const_tree, const_tree);
extern void dump_tree_statistics (void);
extern void recompute_tree_invariant_for_addr_expr (tree);