+2013-11-12 Jeff Law <law@redhat.com>
+
+ * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
+ memory references as volatile.
+ (insert_trap_and_remove_trailing_statements): Fix comment.
+
2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
PR other/58712
{
if ((TREE_CODE (op) == MEM_REF || TREE_CODE (op) == TARGET_MEM_REF)
&& operand_equal_p (TREE_OPERAND (op, 0), (tree)data, 0))
- return true;
+ {
+ TREE_THIS_VOLATILE (op) = 1;
+ TREE_SIDE_EFFECTS (op) = 1;
+ update_stmt (stmt);
+ return true;
+ }
return false;
}
code that wishes to catch the signal can do so.
If the dereference is a load, then there's nothing to do as the
- LHS will be a throw-away SSA_NAME and the LHS is the NULL dereference.
+ LHS will be a throw-away SSA_NAME and the RHS is the NULL dereference.
If the dereference is a store and we can easily transform the RHS,
then simplify the RHS to enable more DCE. */
+2013-11-12 Jeff Law <law@redhat.com>
+
+ * gcc.dg/tree-ssa/isolate-1.c: Update expected output.
+ * gcc.dg/tree-ssa/isolate-5.c: Verify the load survives through
+ the SSA optimizers.
+
2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/59054
and finally that we set the RHS of the store to zero. */
/* { dg-final { scan-tree-dump-times "__builtin_trap" 1 "isolate-paths"} } */
/* { dg-final { scan-tree-dump-times "->type = 42" 1 "isolate-paths"} } */
-/* { dg-final { scan-tree-dump-times "->type = 0" 1 "isolate-paths"} } */
+/* { dg-final { scan-tree-dump-times "->type ={v} 0" 1 "isolate-paths"} } */
/* { dg-final { scan-tree-dump-times "->zzz" 1 "isolate-paths"} } */
/* { dg-final { cleanup-tree-dump "isolate-paths" } } */
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-isolate-paths" } */
+/* { dg-options "-O2 -fdump-tree-isolate-paths -fdump-tree-optimized" } */
struct demangle_component
We leave the 0->type in the IL, so expect to see ->type twice. */
/* { dg-final { scan-tree-dump-times "__builtin_trap" 1 "isolate-paths"} } */
/* { dg-final { scan-tree-dump-times "->type" 2 "isolate-paths"} } */
+/* { dg-final { scan-tree-dump-times "->type" 1 "optimized"} } */
+/* { dg-final { scan-tree-dump-times "\\.type" 1 "optimized"} } */
/* { dg-final { scan-tree-dump-times "->zzz" 1 "isolate-paths"} } */
/* { dg-final { cleanup-tree-dump "isolate-paths" } } */
-
+/* { dg-final { cleanup-tree-dump "optimized-paths" } } */