]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gimple.c (gimple_set_modified): Move ...
authorRichard Guenther <rguenther@suse.de>
Tue, 15 May 2012 09:20:37 +0000 (09:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 15 May 2012 09:20:37 +0000 (09:20 +0000)
2012-05-15  Richard Guenther  <rguenther@suse.de>

* gimple.c (gimple_set_modified): Move ...
* gimple.h (gimple_set_modified): ... here.

From-SVN: r187503

gcc/ChangeLog
gcc/gimple.c
gcc/gimple.h

index 9b7d499d71edaddc0bae128ffedfb4a3856a9ce1..ba4cd854f5a1a021591feb53f55001a6d4c29b7a 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-15  Richard Guenther  <rguenther@suse.de>
+
+       * gimple.c (gimple_set_modified): Move ...
+       * gimple.h (gimple_set_modified): ... here.
+
 2012-05-15  Tristan Gingold  <gingold@adacore.com>
 
        * ira-color.c (move_spill_restore): Add a guard.
index 79da12cde515dfcf27b5efdd6acb3856c8f95a50..4fc836236fff070910463bd936829ad897f994d4 100644 (file)
@@ -2394,17 +2394,6 @@ gimple_copy (gimple stmt)
 }
 
 
-/* Set the MODIFIED flag to MODIFIEDP, iff the gimple statement G has
-   a MODIFIED field.  */
-
-void
-gimple_set_modified (gimple s, bool modifiedp)
-{
-  if (gimple_has_ops (s))
-    s->gsbase.modified = (unsigned) modifiedp;
-}
-
-
 /* Return true if statement S has side-effects.  We consider a
    statement to have side effects if:
 
index 80271a1e358a64f707be513ac2286ee21880b248..2b10f1a9b1477e4a1a09bfdab5b8afeeee3ed51c 100644 (file)
@@ -830,7 +830,6 @@ tree gimple_get_lhs (const_gimple);
 void gimple_set_lhs (gimple, tree);
 void gimple_replace_lhs (gimple, tree);
 gimple gimple_copy (gimple);
-void gimple_set_modified (gimple, bool);
 void gimple_cond_get_ops_from_tree (tree, enum tree_code *, tree *, tree *);
 gimple gimple_build_cond_from_tree (tree, tree, tree);
 void gimple_cond_set_condition_from_tree (gimple, tree);
@@ -1521,6 +1520,17 @@ gimple_modified_p (const_gimple g)
 }
 
 
+/* Set the MODIFIED flag to MODIFIEDP, iff the gimple statement G has
+   a MODIFIED field.  */
+
+static inline void
+gimple_set_modified (gimple s, bool modifiedp)
+{
+  if (gimple_has_ops (s))
+    s->gsbase.modified = (unsigned) modifiedp;
+}
+
+
 /* Return the tree code for the expression computed by STMT.  This is
    only valid for GIMPLE_COND, GIMPLE_CALL and GIMPLE_ASSIGN.  For
    GIMPLE_CALL, return CALL_EXPR as the expression code for