]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/cp-tree.def
c-common.def (SIZEOF_EXPR, [...]): Remove.
authorIan Lance Taylor <ian@airs.com>
Sun, 17 Apr 2005 21:27:47 +0000 (21:27 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sun, 17 Apr 2005 21:27:47 +0000 (21:27 +0000)
commit03a0866432efadc888d6a65651943b89e2ae6eb0
tree8d0efbde4233e83950ce2bef9c8a5c3377334df2
parent81a60083ea5e7aa3ccd994dd6fefc3d4099303af
c-common.def (SIZEOF_EXPR, [...]): Remove.

./ * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
* c-common.c (c_sizeof_or_alignof_type): Change second parameter
from enum tree_code op to bool is_sizeof.
* c-common.h (c_sizeof_or_alignof_type): Update declaration.
(c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
* c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
case.
(pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
cases.
(pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
ALIGNOF_EXPR cases.
cp/
* cp-tree.def: Add SIZEOF_EXPR, ARROW_EXPR and ALIGNOF_EXPR.
* cxx-pretty-print.c (pp_cxx_postfix_expression): Handle
ARROW_EXPR.
(pp_cxx_unary_expression): Handle SIZEOF_EXPR and ALIGNOF_EXPR.
(pp_cxx_expression): Handle ARROW_EXPR, SIZEOF_EXPR, and
ALIGNOF_EXPR.
* typeck.c (cxx_sizeof_or_alignof_type): Update call to
c_sizeof_or_alignof_type for change in parameter type.

From-SVN: r98297
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.def
gcc/c-common.h
gcc/c-pretty-print.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.def
gcc/cp/cxx-pretty-print.c
gcc/cp/typeck.c