diff options
author | Andrew Haley <aph@redhat.com> | 2004-06-26 10:10:25 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2004-06-26 10:10:25 +0000 |
commit | 5cb2183e8b41ade5f28abc19e852de9081434ae5 (patch) | |
tree | 739670d850e2307e3f9aad81c8740a8637a62fbc /gcc/emit-rtl.c | |
parent | 1ab3a0ade68ce42d89502f7eae5674df245de360 (diff) | |
download | gcc-5cb2183e8b41ade5f28abc19e852de9081434ae5.zip gcc-5cb2183e8b41ade5f28abc19e852de9081434ae5.tar.gz gcc-5cb2183e8b41ade5f28abc19e852de9081434ae5.tar.bz2 |
emit-rtl.c (set_mem_attributes_minus_bitpos): Check TREE_THIS_NOTRAP when setting MEM_NOTRAP_P.
2004-06-26 Andrew Haley <aph@redhat.com>
* emit-rtl.c (set_mem_attributes_minus_bitpos): Check
TREE_THIS_NOTRAP when setting MEM_NOTRAP_P.
* tree-eh.c (tree_could_trap_p): Check TREE_THIS_NOTRAP.
* tree.h (TREE_THIS_NOTRAP): New.
From-SVN: r83706
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 984f81f..91ef8e9 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1543,6 +1543,7 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, && (TYPE_READONLY (type) || (t != type && TREE_READONLY (t)))) || (! TYPE_P (t) && TREE_CONSTANT (t))); MEM_POINTER (ref) = POINTER_TYPE_P (type); + MEM_NOTRAP_P (ref) = TREE_THIS_NOTRAP (t); /* If we are making an object of this type, or if this is a DECL, we know that it is a scalar if the type is not an aggregate. */ |