This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] tree-iterator.c: Remove EXPR_LAST_BODY.
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Apr 2009 10:36:53 +0200
- Subject: Re: [patch] tree-iterator.c: Remove EXPR_LAST_BODY.
- References: <20090416080417.9D9D96F62058@daisy.codesourcery.com>
On Thu, Apr 16, 2009 at 10:04 AM, Kazu Hirata <kazu@codesourcery.com> wrote:
> Hi,
>
> Attached is a patch to remove EXPR_LAST_BODY.
>
> AFAICT, this macro has been unused since Revision 128014.
>
> Bootstrapped on x86_64-pc-linux-gnu. ?OK to apply?
Ok.
Thanks,
RIchard.
> Kazu Hirata
>
> 2009-04-16 ?Kazu Hirata ?<kazu@codesourcery.com>
>
> ? ? ? ?* tree-iterator.c (EXPR_LAST_BODY): Remove.
>
> Index: gcc/tree-iterator.c
> ===================================================================
> --- gcc/tree-iterator.c (revision 146080)
> +++ gcc/tree-iterator.c (working copy)
> @@ -320,19 +320,6 @@ expr_first (tree expr)
> ?/* Return the last expression in a sequence of COMPOUND_EXPRs,
> ? ?or in a STATEMENT_LIST. ?*/
>
> -#define EXPR_LAST_BODY do { \
> - ?if (expr == NULL_TREE) \
> - ? ?return expr;\
> - ?if (TREE_CODE (expr) == STATEMENT_LIST) \
> - ? ?{ \
> - ? ? ?struct tree_statement_list_node *n = STATEMENT_LIST_TAIL (expr); \
> - ? ? ?return n ? n->stmt : NULL_TREE; \
> - ? ?} \
> - ?while (TREE_CODE (expr) == COMPOUND_EXPR) \
> - ? ?expr = TREE_OPERAND (expr, 1); \
> - ?return expr; \
> -} while (0)
> -
> ?tree
> ?expr_last (tree expr)
> ?{
>