From: Eric Botcazou Date: Mon, 21 Mar 2011 18:04:50 +0000 (+0000) Subject: * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31408f60e99e80c891e4f0356abeacf58c86f999;p=gcc.git * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag. From-SVN: r171253 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7296dec723b..669741c3c72 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,8 @@ -2011-03-20 Jakub Jelinek +2011-03-21 Eric Botcazou + + * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag. + +2011-03-21 Jakub Jelinek PR c/42544 PR c/48197 diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 0b314a068c3..c034ec29228 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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;