[tree-ssa] inline return f()
Richard Henderson
rth@redhat.com
Fri Jan 30 00:31:00 GMT 2004
By inspection.
r~
* tree-inline.c (gimple_expand_calls_inline): Look inside
RETURN_EXPR.
Index: tree-inline.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.26.2.77
diff -c -p -d -r1.26.2.77 tree-inline.c
*** tree-inline.c 15 Jan 2004 06:43:19 -0000 1.26.2.77
--- tree-inline.c 30 Jan 2004 00:27:28 -0000
*************** gimple_expand_calls_inline (tree *stmt_p
*** 1741,1746 ****
--- 1741,1752 ----
/* We're gimple. We should have gotten rid of all these. */
abort ();
+ case RETURN_EXPR:
+ stmt_p = &TREE_OPERAND (stmt, 0);
+ stmt = *stmt_p;
+ if (!stmt || TREE_CODE (stmt) != MODIFY_EXPR)
+ break;
+ /* FALLTHRU */
case MODIFY_EXPR:
stmt_p = &TREE_OPERAND (stmt, 1);
stmt = *stmt_p;
More information about the Gcc-patches
mailing list