tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
authorGeoffrey Keating <geoffk@redhat.com>
Fri, 9 Nov 2001 23:08:19 +0000 (23:08 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 9 Nov 2001 23:08:19 +0000 (23:08 +0000)
* tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
(TYPE_READONLY): Likewise.

From-SVN: r46902

gcc/ChangeLog
gcc/tree.h

index 8e7d9e7d1649823a93386333d7785763d464c412..e49059815185ca700b8da69951901dba0085a1f5 100644 (file)
@@ -1,5 +1,8 @@
 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
 
+       * 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,
index b92a5ecf3d9f7881574eaa7299fd76f8d1132cc5..c974cd56f8b92b11206bbd6959a496965e0e30b5 100644 (file)
@@ -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.  */