]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gimple.h (gimplify_seq_add_stmt): Rename to...
authorJakub Jelinek <jakub@redhat.com>
Mon, 19 Dec 2011 14:25:28 +0000 (15:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 19 Dec 2011 14:25:28 +0000 (15:25 +0100)
* gimple.h (gimplify_seq_add_stmt): Rename to...
(gimple_seq_add_stmt_without_update): ... this.
* gimplify.c (gimplify_seq_add_stmt): Rename to...
(gimple_seq_add_stmt_without_update): ... this.
(gimplify_seq_add_stmt): New inline wrapper for it.
* tree-vect-patterns.c (append_pattern_def_seq): Use
gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.

* cp-gimplify.c (gimplify_must_not_throw_expr): Use
gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.

From-SVN: r182482

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/gimple.h
gcc/gimplify.c
gcc/tree-vect-patterns.c

index 57f9e4e2b08a6e30d9081c188e4ca9e0da9e6b72..974af002d5eae695dfb1289c9bdaec4ebe86d250 100644 (file)
@@ -1,5 +1,13 @@
 2011-12-19  Jakub Jelinek  <jakub@redhat.com>
 
+       * gimple.h (gimplify_seq_add_stmt): Rename to...
+       (gimple_seq_add_stmt_without_update): ... this.
+       * gimplify.c (gimplify_seq_add_stmt): Rename to...
+       (gimple_seq_add_stmt_without_update): ... this.
+       (gimplify_seq_add_stmt): New inline wrapper for it.
+       * tree-vect-patterns.c (append_pattern_def_seq): Use
+       gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.
+
        PR tree-optimization/51596
        * tree-cfg.c (replace_uses_by): Call gimple_purge_dead_eh_edges
        when needed.
index 640bf9a909225255d98cc02c647b8e80871995f4..d8b30df55471151cd55ee5fdd7160068909142a1 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * cp-gimplify.c (gimplify_must_not_throw_expr): Use
+       gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.
+
 2011-12-19  Dodji Seketeli  <dodji@redhat.com>
 
        PR c++/51477
index 9968c3dd7ee122e020887a2d1f05d70404ef12c8..c68069db2f3766c950f1ed1b83e30a2f6456f075 100644 (file)
@@ -475,10 +475,10 @@ gimplify_must_not_throw_expr (tree *expr_p, gimple_seq *pre_p)
 
   gimplify_and_add (body, &try_);
   mnt = gimple_build_eh_must_not_throw (terminate_node);
-  gimplify_seq_add_stmt (&catch_, mnt);
+  gimple_seq_add_stmt_without_update (&catch_, mnt);
   mnt = gimple_build_try (try_, catch_, GIMPLE_TRY_CATCH);
 
-  gimplify_seq_add_stmt (pre_p, mnt);
+  gimple_seq_add_stmt_without_update (pre_p, mnt);
   if (temp)
     {
       *expr_p = temp;
index 487b516cbd3e82557fd33b7b3a53a09de86dea56..9ac8f26c55fc471161e3b29aa5e96c5c5f6109e2 100644 (file)
@@ -226,7 +226,7 @@ void gimple_seq_add_stmt (gimple_seq *, gimple);
    similar to gimple_seq_add_stmt, but does not scan the operands.
    During gimplification, we need to manipulate statement sequences
    before the def/use vectors have been constructed.  */
-void gimplify_seq_add_stmt (gimple_seq *, gimple);
+void gimple_seq_add_stmt_without_update (gimple_seq *, gimple);
 
 /* Allocate a new sequence and initialize its first element with STMT.  */
 
index fe8d2f801a35446c023d737f435ffd7a39bd4c92..14d627e7254f256b22df287a44fecc10e4b505b2 100644 (file)
@@ -162,7 +162,7 @@ gimple_tree_eq (const void *p1, const void *p2)
    before the def/use vectors have been constructed.  */
 
 void
-gimplify_seq_add_stmt (gimple_seq *seq_p, gimple gs)
+gimple_seq_add_stmt_without_update (gimple_seq *seq_p, gimple gs)
 {
   gimple_stmt_iterator si;
 
@@ -177,6 +177,15 @@ gimplify_seq_add_stmt (gimple_seq *seq_p, gimple gs)
   gsi_insert_after_without_update (&si, gs, GSI_NEW_STMT);
 }
 
+/* Shorter alias name for the above function for use in gimplify.c
+   only.  */
+
+static inline void
+gimplify_seq_add_stmt (gimple_seq *seq_p, gimple gs)
+{
+  gimple_seq_add_stmt_without_update (seq_p, gs);
+}
+
 /* Append sequence SRC to the end of sequence *DST_P.  If *DST_P is
    NULL, a new sequence is allocated.   This function is
    similar to gimple_seq_add_seq, but does not scan the operands.
index 3425cdc5f7224fc206bbdc83d5f10b96605c08a9..a5b8af911aae24e74118fcbd0f6b9e0e6338380f 100644 (file)
@@ -73,7 +73,8 @@ static vect_recog_func_ptr vect_vect_recog_func_ptrs[NUM_PATTERNS] = {
 static inline void
 append_pattern_def_seq (stmt_vec_info stmt_info, gimple stmt)
 {
-  gimplify_seq_add_stmt (&STMT_VINFO_PATTERN_DEF_SEQ (stmt_info), stmt);
+  gimple_seq_add_stmt_without_update (&STMT_VINFO_PATTERN_DEF_SEQ (stmt_info),
+                                     stmt);
 }
 
 static inline void