Commit 31408f60 by Eric Botcazou

* gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.

From-SVN: r171253
parent 126e6609
2011-03-20 Jakub Jelinek <jakub@redhat.com>
2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
* gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
2011-03-21 Jakub Jelinek <jakub@redhat.com>
PR c/42544
PR c/48197
......
......@@ -1322,6 +1322,7 @@ gimplify_vla_decl (tree decl, gimple_seq *seq_p)
addr = create_tmp_var (ptr_type, get_name (decl));
DECL_IGNORED_P (addr) = 0;
t = build_fold_indirect_ref (addr);
TREE_THIS_NOTRAP (t) = 1;
SET_DECL_VALUE_EXPR (decl, t);
DECL_HAS_VALUE_EXPR_P (decl) = 1;
......
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