* gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
From-SVN: r171253
This commit is contained in:
parent
126e660935
commit
31408f60e9
@ -1,4 +1,8 @@
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user