This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New flag: TREE_THIS_NOTRAP
Oh hell, I forgot to change the comment.
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.515
diff -c -2 -p -w -r1.515 tree.h
*** tree.h 16 Jun 2004 05:09:40 -0000 1.515
--- tree.h 16 Jun 2004 15:36:16 -0000
*************** struct tree_common GTY(())
*** 306,309 ****
--- 306,312 ----
..._TYPE
+ TREE_THIS_NOTRAP in
+ INDIRECT_REF
+
deprecated_flag:
*************** extern void tree_operand_check_failed (i
*** 762,765 ****
--- 765,774 ----
#define TREE_THIS_VOLATILE(NODE) ((NODE)->common.volatile_flag)
+ /* Nonzero means this node will not trap. In an INDIRECT_REF, means
+ accessing the memory pointed to won't generate a trap. However,
+ this only applies to an object when used appropriately: it doesn't
+ mean that writing a READONLY mem won't trap. */
+ #define TREE_THIS_NOTRAP(NODE) ((NODE)->common.nothrow_flag)
+
/* In a VAR_DECL, PARM_DECL or FIELD_DECL, or any kind of ..._REF node,