diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-26 10:10:25 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-26 10:10:25 +0000 |
commit | 010d0641f1741e7eb160b49ccd521e089828ef2a (patch) | |
tree | 739670d850e2307e3f9aad81c8740a8637a62fbc /gcc/emit-rtl.c | |
parent | 03f82960596423fbb9557105a2c87ad83e00dc6c (diff) | |
download | ppe42-gcc-010d0641f1741e7eb160b49ccd521e089828ef2a.tar.gz ppe42-gcc-010d0641f1741e7eb160b49ccd521e089828ef2a.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83706 138bc75d-0d04-0410-961f-82ee72b054a4
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 984f81ffd6a..91ef8e9fafd 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. */ |