diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-03-05 20:21:31 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-03-05 20:21:31 +0000 |
commit | 3f724eb8a71c5aa02709ff34b93d272881bf69f8 (patch) | |
tree | fba2d3323d7f2571f5c37de39187febd503d8e75 /gcc/tree.h | |
parent | 19db01bb4587701a48494f8ec1ef18933652a614 (diff) | |
download | gcc-3f724eb8a71c5aa02709ff34b93d272881bf69f8.zip gcc-3f724eb8a71c5aa02709ff34b93d272881bf69f8.tar.gz gcc-3f724eb8a71c5aa02709ff34b93d272881bf69f8.tar.bz2 |
c-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS.
gcc/
* c-semantics.c (build_stmt): Use TYPE_P instead of
IS_NON_TYPE_CODE_CLASS.
* tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
(NON_TYPE_CHECK): Use TYPE_P instead of
IS_NON_TYPE_CODE_CLASS.
java/
* expr.c (build_expr_wfl, expr_add_location): Use TYPE_P
instead of IS_NON_TYPE_CODE_CLASS.
From-SVN: r95942
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -134,10 +134,6 @@ extern const enum tree_code_class tree_code_type[]; #define EXPRESSION_CLASS_P(CODE)\ (TREE_CODE_CLASS (TREE_CODE (CODE)) == tcc_expression) -/* Returns nonzero iff CLASS is not the tree code of a type. */ - -#define IS_NON_TYPE_CODE_CLASS(CLASS) ((CLASS) != tcc_type) - /* Returns nonzero iff CODE represents a type or declaration. */ #define IS_TYPE_OR_DECL_P(CODE)\ @@ -557,8 +553,7 @@ struct tree_common GTY(()) /* These checks have to be special cased. */ #define NON_TYPE_CHECK(T) __extension__ \ ({ const tree __t = (T); \ - char const __c = TREE_CODE_CLASS (TREE_CODE (__t)); \ - if (!IS_NON_TYPE_CODE_CLASS (__c)) \ + if (TYPE_P (__t)) \ tree_class_check_failed (__t, tcc_type, __FILE__, __LINE__, \ __FUNCTION__); \ __t; }) |