This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] tree-iterator.c: Remove EXPR_LAST_BODY.


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)
> ?{
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]