From 50e9f73a3b5ee13f26e759a6927ed24a41462050 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Fri, 9 Nov 2001 23:08:19 +0000 Subject: [PATCH] tree.h (TYPE_VOLATILE): Trap use not on TYPEs. * tree.h (TYPE_VOLATILE): Trap use not on TYPEs. (TYPE_READONLY): Likewise. From-SVN: r46902 --- gcc/ChangeLog | 3 +++ gcc/tree.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e7d9e7d164..e4905981518 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-11-09 Geoffrey Keating + * tree.h (TYPE_VOLATILE): Trap use not on TYPEs. + (TYPE_READONLY): Likewise. + * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time. * config/stormy16/stormy16.h (ASM_SPEC): Revert last change, diff --git a/gcc/tree.h b/gcc/tree.h index b92a5ecf3d9..c974cd56f8b 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -1014,10 +1014,10 @@ struct tree_block (FUNCTION_TYPE_CHECK (NODE)->type.no_force_blk_flag) /* Nonzero in a type considered volatile as a whole. */ -#define TYPE_VOLATILE(NODE) ((NODE)->common.volatile_flag) +#define TYPE_VOLATILE(NODE) (TYPE_CHECK (NODE)->common.volatile_flag) /* Means this type is const-qualified. */ -#define TYPE_READONLY(NODE) ((NODE)->common.readonly_flag) +#define TYPE_READONLY(NODE) (TYPE_CHECK (NODE)->common.readonly_flag) /* If nonzero, this type is `restrict'-qualified, in the C sense of the term. */