diff options
author | Gabriel Dos Reis <gdr@nerim.net> | 2002-07-25 08:58:07 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-07-25 08:58:07 +0000 |
commit | ea79391291786e58a29c963b6c407b71e55d5f34 (patch) | |
tree | e9d93010f8bf070bad0d387d2dd303dfd9b57502 /gcc/c-tree.h | |
parent | ef6838b11c072f9a8b6be34f03e18bb24553f61e (diff) | |
download | gcc-ea79391291786e58a29c963b6c407b71e55d5f34.zip gcc-ea79391291786e58a29c963b6c407b71e55d5f34.tar.gz gcc-ea79391291786e58a29c963b6c407b71e55d5f34.tar.bz2 |
c-common.c (c_sizeof_or_alignof_type): Take a third argument for complaining.
* c-common.c (c_sizeof_or_alignof_type): Take a third argument for
complaining.
* c-common.h (c_sizeof): Adjust definition.
(c_alignof): Likewise.
* c-tree.h (c_sizeof_nowarn): Now macro.
* c-typeck.c (c_sizeof_nowarn): Remove definition.
cp/
* cp-tree.h (cxx_sizeof_nowarn): Now a macro.
(cxx_sizeof_or_alignof_type): Take a third argument.
(cxx_sizeof): Adjust definition.
(cxx_alignof): Likewise.
* init.c (build_delete): Use cxx_sizeof_nowarn to reflect reality.
* typeck.c (cxx_sizeof_or_alignof_type): Take a third argument for
complaining.
(c_sizeof_nowarn): Remove definition.
(build_unary_op): Use cxx_sizeof_nowarn.
From-SVN: r55744
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 64eb2e1..a2bf542 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -255,10 +255,10 @@ extern bool c_warn_unused_global_decl PARAMS ((tree)); ((CONST_P) ? TYPE_QUAL_CONST : 0) | \ ((VOLATILE_P) ? TYPE_QUAL_VOLATILE : 0)) +#define c_sizeof_nowarn(T) c_sizeof_or_alignof_type (T, SIZEOF_EXPR, 0) /* in c-typeck.c */ extern tree require_complete_type PARAMS ((tree)); extern int comptypes PARAMS ((tree, tree)); -extern tree c_sizeof_nowarn PARAMS ((tree)); extern tree c_size_in_bytes PARAMS ((tree)); extern bool c_mark_addressable PARAMS ((tree)); extern void c_incomplete_type_error PARAMS ((tree, tree)); |