Additional changes to switch from gimple to gimple *
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 24 Sep 2015 09:27:12 +0000 (11:27 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Thu, 24 Sep 2015 09:27:12 +0000 (11:27 +0200)
gcc/
* tree-object-size.c (plus_stmt_object_size)
(cond_expr_object_size): Change the formal parameters from gimple
to gimple *.
* tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
* tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
* tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.

From-SVN: r228080

gcc/ChangeLog
gcc/tree-object-size.c
gcc/tree-ssa-alias.c
gcc/tree-ssa-sccvn.c
gcc/tree-ssa-sccvn.h

index 9c2ad9d5d2e8f1944a8587a04034912f8f633b22..7bc8e91855ba04a2c640b969c50263e895c19af4 100644 (file)
@@ -1,3 +1,12 @@
+2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * tree-object-size.c (plus_stmt_object_size)
+       (cond_expr_object_size): Change the formal parameters from gimple
+       to gimple *.
+       * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
+       * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
+       * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
+
 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
index f76f160f4a4a6c1abfa46f18e9f4ef4865dc20ec..230761b78f8c0a58ab73c2bbd017d58b04427cd1 100644 (file)
@@ -59,8 +59,8 @@ static void collect_object_sizes_for (struct object_size_info *, tree);
 static void expr_object_size (struct object_size_info *, tree, tree);
 static bool merge_object_sizes (struct object_size_info *, tree, tree,
                                unsigned HOST_WIDE_INT);
-static bool plus_stmt_object_size (struct object_size_info *, tree, gimple);
-static bool cond_expr_object_size (struct object_size_info *, tree, gimple);
+static bool plus_stmt_object_size (struct object_size_info *, tree, gimple *);
+static bool cond_expr_object_size (struct object_size_info *, tree, gimple *);
 static void init_offset_limit (void);
 static void check_for_plus_in_loops (struct object_size_info *, tree);
 static void check_for_plus_in_loops_1 (struct object_size_info *, tree,
index f3674ae5eee094a70478c290cedc3346c10aa617..5ff2275c079bd7ccf8029a5a65c8fcf3f68d5b11 100644 (file)
@@ -76,12 +76,12 @@ along with GCC; see the file COPYING3.  If not see
 
    The main alias-oracle entry-points are
 
-   bool stmt_may_clobber_ref_p (gimple, tree)
+   bool stmt_may_clobber_ref_p (gimple *, tree)
 
      This function queries if a statement may invalidate (parts of)
      the memory designated by the reference tree argument.
 
-   bool ref_maybe_used_by_stmt_p (gimple, tree)
+   bool ref_maybe_used_by_stmt_p (gimple *, tree)
 
      This function queries if a statement may need (parts of) the
      memory designated by the reference tree argument.
index 57c1b55a4a68ca1714c23f2f1b38eee925113dac..ce79842dd2bfb2078cc0a19a7d34c6340c30bc11 100644 (file)
@@ -2684,7 +2684,7 @@ vn_nary_op_insert (tree op, tree result)
 /* Insert the rhs of STMT into the current hash table with a value number of
    RESULT.  */
 
-vn_nary_op_t
+static vn_nary_op_t
 vn_nary_op_insert_stmt (gimple *stmt, tree result)
 {
   vn_nary_op_t vno1
index 92ca85ab8be8a325364e03543dfc2f9828de39ba..d0a911fc0ea122dd2b7eb4d2aab08b676505372f 100644 (file)
@@ -204,7 +204,6 @@ tree vn_nary_op_lookup_stmt (gimple *, vn_nary_op_t *);
 tree vn_nary_op_lookup_pieces (unsigned int, enum tree_code,
                               tree, tree *, vn_nary_op_t *);
 vn_nary_op_t vn_nary_op_insert (tree, tree);
-vn_nary_op_t vn_nary_op_insert_stmt (gimple, tree);
 vn_nary_op_t vn_nary_op_insert_pieces (unsigned int, enum tree_code,
                                       tree, tree *, tree, unsigned int);
 bool ao_ref_init_from_vn_reference (ao_ref *, alias_set_type, tree,