]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gimplify.h (recalculate_side_effects): Delete.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 23 Nov 2013 10:23:02 +0000 (10:23 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 23 Nov 2013 10:23:02 +0000 (10:23 +0000)
* gimplify.h (recalculate_side_effects): Delete.
* gimplify.c (recalculate_side_effects): Make static and add comment.
ada/
* gcc-interface/trans.c (Loop_Statement_to_gnu): Set TREE_SIDE_EFFECTS
on the conditional expression directly.

From-SVN: r205305

gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/gimplify.c
gcc/gimplify.h

index df5b4b8ab8e008e140ab090c9f5fedd4ffd0b688..32955d7eaf4fea06da1eb1bd64fddf13ca20e77b 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gimplify.h (recalculate_side_effects): Delete.
+       * gimplify.c (recalculate_side_effects): Make static and add comment.
+
 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
index 12737c9431f27e68e4127553dc721e209b787fd4..8bb3462bc5a51aadf7c1b9b5997308c0b4e08098 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/trans.c (Loop_Statement_to_gnu): Set TREE_SIDE_EFFECTS
+       on the conditional expression directly.
+
 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
 
        * gcc-interface/trans.c: Add required include files from gimple.h.
index 2266a5b119b5d05b5c837863caff0145928a64d8..e533de6dcbf7a33caabf4cdcbb859704fe4d12df 100644 (file)
@@ -2808,8 +2808,8 @@ Loop_Statement_to_gnu (Node_Id gnat_node)
   if (gnu_cond_expr)
     {
       COND_EXPR_THEN (gnu_cond_expr) = gnu_loop_stmt;
+      TREE_SIDE_EFFECTS (gnu_cond_expr) = 1;
       gnu_result = gnu_cond_expr;
-      recalculate_side_effects (gnu_cond_expr);
     }
   else
     gnu_result = gnu_loop_stmt;
index b3608c3171d333d51c6eef35c223fbc4808fa78e..b252bef6508c0216fa1380034ed1f106ac843b02 100644 (file)
@@ -1757,7 +1757,9 @@ gimplify_var_or_parm_decl (tree *expr_p)
   return GS_ALL_DONE;
 }
 
-void
+/* Recalculate the value of the TREE_SIDE_EFFECTS flag for T.  */
+
+static void
 recalculate_side_effects (tree t)
 {
   enum tree_code code = TREE_CODE (t);
index 049f80dd0a846bd62a0fec6293ef5c932a7564f6..91000d1e6b75c637e9138de3b0bb741a15bf9ab0 100644 (file)
@@ -64,7 +64,6 @@ extern tree unshare_expr (tree);
 extern tree unshare_expr_without_location (tree);
 extern tree voidify_wrapper_expr (tree, tree);
 extern tree build_and_jump (tree *);
-extern void recalculate_side_effects (tree);
 extern enum gimplify_status gimplify_self_mod_expr (tree *, gimple_seq *,
                                                    gimple_seq *, bool, tree);
 extern tree gimple_boolify (tree);