c-common.c (c_sizeof_or_alignof_type): Take a third argument for complaining.
authorGabriel Dos Reis <gdr@nerim.net>
Thu, 25 Jul 2002 08:58:07 +0000 (08:58 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Thu, 25 Jul 2002 08:58:07 +0000 (08:58 +0000)
commitea79391291786e58a29c963b6c407b71e55d5f34
treee9d93010f8bf070bad0d387d2dd303dfd9b57502
parentef6838b11c072f9a8b6be34f03e18bb24553f61e
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
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-tree.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/typeck.c