The expr_hash_elt (tree) constructor has never been defined, and
initialize_expr_from_cond has no user outside of its own file.

Fixed and pushed as obvious.

gcc/ChangeLog:

        * tree-ssa-scopedtables.h (expr_hash_elt::expr_hash_elt): Remove
        the undefined tree overload.
        (initialize_expr_from_cond): Remove declaration.
        * tree-ssa-scopedtables.cc (initialize_expr_from_cond): Make
        static.
---
 gcc/tree-ssa-scopedtables.cc | 2 +-
 gcc/tree-ssa-scopedtables.h  | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/tree-ssa-scopedtables.cc b/gcc/tree-ssa-scopedtables.cc
index 1dba346763c..85189624f11 100644
--- a/gcc/tree-ssa-scopedtables.cc
+++ b/gcc/tree-ssa-scopedtables.cc
@@ -944,7 +944,7 @@ expr_elt_hasher::equal (const value_type &p1, const 
compare_type &p2)
    comparison or logical negation.  A constant or a variable is
    not permitted.  */
 
-void
+static void
 initialize_expr_from_cond (tree cond, struct hashable_expr *expr)
 {
   expr->type = boolean_type_node;
diff --git a/gcc/tree-ssa-scopedtables.h b/gcc/tree-ssa-scopedtables.h
index c7989b2c88e..4a1c0264d6f 100644
--- a/gcc/tree-ssa-scopedtables.h
+++ b/gcc/tree-ssa-scopedtables.h
@@ -69,7 +69,6 @@ class expr_hash_elt
 {
  public:
   expr_hash_elt (gimple *, tree);
-  expr_hash_elt (tree);
   expr_hash_elt (struct hashable_expr *, tree);
   expr_hash_elt (class expr_hash_elt &);
   ~expr_hash_elt ();
@@ -201,7 +200,6 @@ class const_and_copies
   const_and_copies (class const_and_copies &);
 };
 
-void initialize_expr_from_cond (tree cond, struct hashable_expr *expr);
 void record_conditions (vec<cond_equivalence> *p, tree, tree);
 
 #endif /* GCC_TREE_SSA_SCOPED_TABLES_H */
-- 
2.53.0

Reply via email to