diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-06-05 13:16:14 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-06-05 13:16:14 +0000 |
commit | 71653180cfbab88d037392402436b4ab0356151e (patch) | |
tree | 64fbc708396980bce2d2ce05f2b8e5d26f192e02 /gcc/tree.h | |
parent | 19331b539d817eef4190b78ee779a445acf046c7 (diff) | |
download | gcc-71653180cfbab88d037392402436b4ab0356151e.zip gcc-71653180cfbab88d037392402436b4ab0356151e.tar.gz gcc-71653180cfbab88d037392402436b4ab0356151e.tar.bz2 |
tree.h (VOID_TYPE_P): New macro.
* tree.h (VOID_TYPE_P): New macro.
(COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
* c-decl.c (grokdeclarator): Use VOID_TYPE_P.
(get_parm_info): Likewise.
(store_parm_decls): Likewise.
(combine_parm_decls): Likewise.
(finish_function): Likewise.
* c-typeck.c (build_function_call): Likewise.
(build_binary_op): Likewise.
(build_conditional_expr): Likewise.
(internal_build_compound_expr): Likewise.
(convert_for_assignment): Likewise.
* stmt.c (expend_expr_stmt): Likewise.
(warn_if_unused_value): Likewise.
(expand_return): Likewise.
* c-parse.in (primary): Likewise.
* c-parse.y, c-parse.c, c-parse.h: Regenerate.
* objc/objc-parse.y, objc/objc-parse.c: Regenerate.
From-SVN: r34402
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -453,9 +453,12 @@ extern void tree_class_check_failed PARAMS ((const tree, char, /* Nonzero if this type is a complete type. */ #define COMPLETE_TYPE_P(NODE) (TYPE_SIZE (NODE) != NULL_TREE) +/* Nonzero if this type is the (possibly qualified) void type. */ +#define VOID_TYPE_P(NODE) (TYPE_MAIN_VARIANT (NODE) == void_type_node) + /* Nonzero if this type is complete or is cv void. */ #define COMPLETE_OR_VOID_TYPE_P(NODE) \ - (COMPLETE_TYPE_P (NODE) || TREE_CODE (NODE) == VOID_TYPE) + (COMPLETE_TYPE_P (NODE) || VOID_TYPE_P (NODE)) /* Nonzero if this type is complete or is an array with unspecified bound. */ #define COMPLETE_OR_UNBOUND_ARRAY_TYPE_P(NODE) \ |