This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/68590] [6 Regression] FAIL: gnat.dg/loop_optimization19.adb scan-tree-dump-not optimized "Index_Check"
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Nov 2015 12:53:54 +0000
- Subject: [Bug ada/68590] [6 Regression] FAIL: gnat.dg/loop_optimization19.adb scan-tree-dump-not optimized "Index_Check"
- Auto-submitted: auto-generated
- References: <bug-68590-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68590
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
So I'd say we should do
Index: gcc/tree.c
===================================================================
--- gcc/tree.c (revision 231058)
+++ gcc/tree.c (working copy)
@@ -3344,10 +3344,6 @@
t = build1 (SAVE_EXPR, TREE_TYPE (expr), t);
SET_EXPR_LOCATION (t, EXPR_LOCATION (expr));
- /* This expression might be placed ahead of a jump to ensure that the
- value was computed on both sides of the jump. So make sure it isn't
- eliminated as dead. */
- TREE_SIDE_EFFECTS (t) = 1;
return t;
}