[patch] tree-iterator.c: Remove EXPR_LAST_BODY.
Kazu Hirata
kazu@codesourcery.com
Thu Apr 16 08:04:00 GMT 2009
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)
{
More information about the Gcc-patches
mailing list