https://gcc.gnu.org/g:892f207ad8adfd33e3e54d478cbb37195a5f7058

commit r17-4910-g892f207ad8adfd33e3e54d478cbb37195a5f7058
Author: Aldy Hernandez <[email protected]>
Date:   Mon Oct 5 13:07:36 2026 +0000

    DOM: minor cleanups
    
    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.

Diff:
---
 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 1dba346763c8..85189624f11c 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 c7989b2c88e8..4a1c0264d6f6 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 */

Reply via email to