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/c-parse.y | |
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/c-parse.y')
-rw-r--r-- | gcc/c-parse.y | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-parse.y b/gcc/c-parse.y index c228e6e..e86cbda 100644 --- a/gcc/c-parse.y +++ b/gcc/c-parse.y @@ -639,8 +639,7 @@ primary: IDENTIFIER_POINTER (DECL_NAME ($$))); else if ((TYPE_MODE (TREE_TYPE (TREE_TYPE ($$))) != TYPE_MODE (integer_type_node)) - && (TREE_TYPE (TREE_TYPE ($$)) - != void_type_node)) + && !VOID_TYPE_P (TREE_TYPE (TREE_TYPE ($$)))) pedwarn ("type mismatch in implicit declaration for built-in function `%s'", IDENTIFIER_POINTER (DECL_NAME ($$))); /* If it really returns void, change that to int. */ |