This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-iterator.c: Remove EXPR_LAST_BODY.
- From: kazu at codesourcery dot com (Kazu Hirata)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Apr 2009 01:04:17 -0700 (PDT)
- Subject: [patch] tree-iterator.c: Remove EXPR_LAST_BODY.
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?
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)
{