* gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2011 18:04:50 +0000 (18:04 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2011 18:04:50 +0000 (18:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171253 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gimplify.c

index 7296dec..669741c 100644 (file)
@@ -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
index 0b314a0..c034ec2 100644 (file)
@@ -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;