diff options
author | Kaveh Ghazi <ghazi@caip.rutgers.edu> | 2007-07-25 18:00:08 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@caip.rutgers.edu> | 2007-07-25 18:00:08 +0000 |
commit | ea9c9c2a8316bfb3c8f6e510925d675c2db19361 (patch) | |
tree | e05a5706a6c7a814b841fc502ea85b51cd8c1c44 /gcc/coretypes.h | |
parent | 22536fc970aac37f53f5706de345c87414689ac7 (diff) |
* coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
New.
* rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
Preserve const-ness of parameters through use of __typeof(),
also constify and tidy.
* tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@126918 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coretypes.h')
-rw-r--r-- | gcc/coretypes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/coretypes.h b/gcc/coretypes.h index 3f0c58a7e06..ea116f60f9f 100644 --- a/gcc/coretypes.h +++ b/gcc/coretypes.h @@ -39,12 +39,16 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA struct bitmap_head_def; typedef struct bitmap_head_def *bitmap; +typedef const struct bitmap_head_def *const_bitmap; struct rtx_def; typedef struct rtx_def *rtx; +typedef const struct rtx_def *const_rtx; struct rtvec_def; typedef struct rtvec_def *rtvec; +typedef const struct rtvec_def *const_rtvec; union tree_node; typedef union tree_node *tree; +typedef const union tree_node *const_tree; union section; typedef union section section; @@ -78,8 +82,11 @@ struct _dont_use_rtx_here_; struct _dont_use_rtvec_here_; union _dont_use_tree_here_; #define rtx struct _dont_use_rtx_here_ * +#define const_rtx struct _dont_use_rtx_here_ * #define rtvec struct _dont_use_rtvec_here * +#define const_rtvec struct _dont_use_rtvec_here * #define tree union _dont_use_tree_here_ * +#define const_tree union _dont_use_tree_here_ * #endif |