This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Move some more tree codes into the C++ frontend
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 16 Apr 2005 19:00:47 -0700
- Subject: Re: PATCH RFA: Move some more tree codes into the C++ frontend
- References: <m3d5su42sv.fsf@gossamer.airs.com>
Ian Lance Taylor <ian@airs.com> writes:
> ChangeLog:
> 2005-04-16 Ian Lance Taylor <ian@airs.com>
>
> * 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/ChangeLog:
> 2005-04-16 Ian Lance Taylor <ian@airs.com>
>
> * 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.
Ok.
zw