Commit bae729a2 by Thomas Schwinge Committed by Thomas Schwinge

Add clobber for object, after last use.

	gcc/
	* omp-low.c (lower_omp_target): Add clobber for sizes array, after
	last use.

From-SVN: r207723
parent 64e5ace5
2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
* omp-low.c (lower_omp_target): Add clobber for sizes array, after
last use.
* omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
dereference.
......
......@@ -9812,6 +9812,13 @@ lower_omp_target (gimple_stmt_iterator *gsi_p, omp_context *ctx)
TREE_VEC_ELT (t, 1)),
&initlist, true, NULL_TREE);
gimple_seq_add_seq (&ilist, initlist);
tree clobber = build_constructor (TREE_TYPE (TREE_VEC_ELT (t, 1)),
NULL);
TREE_THIS_VOLATILE (clobber) = 1;
gimple_seq_add_stmt (&olist,
gimple_build_assign (TREE_VEC_ELT (t, 1),
clobber));
}
tree clobber = build_constructor (ctx->record_type, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment