]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.c (type_hash_lookup, [...]): Make static.
authorMaxim Kuvyrkov <maxim@kugelworks.com>
Tue, 9 Apr 2013 09:47:33 +0000 (09:47 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Tue, 9 Apr 2013 09:47:33 +0000 (09:47 +0000)
* tree.c (type_hash_lookup, type_hash_add): Make static.
* tree.h (type_hash_lookup, type_hash_add): Remove global declarations.

From-SVN: r197623

gcc/ChangeLog
gcc/tree.c
gcc/tree.h

index 39fca53ca29a2d8517163f8ff216d0fc182bfd0f..d25241f42691ae4e7bd1ec02ba600dd7018782ee 100644 (file)
@@ -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.
index 65bc15f76379bbdd4b08215c71f22a015f7a107d..078caae9b9e48d5fa60756eee1a89fe7c36bf89d 100644 (file)
@@ -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;
index f30361a6b09f777f64f9add5cc3ad283c39ef388..aa424c0e5444118eb367db34cefcac2eb18caa10 100644 (file)
@@ -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);