aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2010-10-11 14:56:39 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2010-10-11 14:56:39 +0000
commit3748f5c9d3d8f7b7c2c0c8c79b3ad605b04acaf3 (patch)
tree86d760319c5f684bb65a7955d36c6b9540156771 /gcc/gimplify.c
parentc159751bf52d6bac1c1dfef02498bf1a32f24278 (diff)
downloadgcc-3748f5c9d3d8f7b7c2c0c8c79b3ad605b04acaf3.zip
gcc-3748f5c9d3d8f7b7c2c0c8c79b3ad605b04acaf3.tar.gz
gcc-3748f5c9d3d8f7b7c2c0c8c79b3ad605b04acaf3.tar.bz2
tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
* tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5. * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check TREE_THIS_NOTRAP when appropriate. (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL. * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to newly created MEM_REF. From-SVN: r165313
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 994ffde..029ad03 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -6798,6 +6798,7 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
case INDIRECT_REF:
{
bool volatilep = TREE_THIS_VOLATILE (*expr_p);
+ bool notrap = TREE_THIS_NOTRAP (*expr_p);
tree saved_ptr_type = TREE_TYPE (TREE_OPERAND (*expr_p, 0));
*expr_p = fold_indirect_ref_loc (input_location, *expr_p);
@@ -6818,6 +6819,7 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
TREE_OPERAND (*expr_p, 0),
build_int_cst (saved_ptr_type, 0));
TREE_THIS_VOLATILE (*expr_p) = volatilep;
+ TREE_THIS_NOTRAP (*expr_p) = notrap;
ret = GS_OK;
break;
}