From: Maxim Kuvyrkov Date: Tue, 9 Apr 2013 09:47:33 +0000 (+0000) Subject: tree.c (type_hash_lookup, [...]): Make static. X-Git-Tag: releases/gcc-4.9.0~6599 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=343881fd9eb2b7e8f90ac10cd17688b3dcce3186;p=thirdparty%2Fgcc.git tree.c (type_hash_lookup, [...]): Make static. * tree.c (type_hash_lookup, type_hash_add): Make static. * tree.h (type_hash_lookup, type_hash_add): Remove global declarations. From-SVN: r197623 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39fca53ca29a..d25241f42691 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-04-09 Maxim Kuvyrkov + + * 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 * tree.h (unsave_expr_now): Remove. diff --git a/gcc/tree.c b/gcc/tree.c index 65bc15f76379..078caae9b9e4 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 f30361a6b09f..aa424c0e5444 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);