X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Ftree-nrv.c;h=0df0712d19c301bf8795fc26926afcb01f86715c;hb=40f4dbd544658572dd5e4693476ddbbe29d9917b;hp=1768b3909b9092e621dbe12ecd88fe24ff8c0e97;hpb=365db11eea46f39f4e46a11a6509d212e41c2307;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/tree-nrv.c b/gcc/tree-nrv.c index 1768b3909b9..0df0712d19c 100644 --- a/gcc/tree-nrv.c +++ b/gcc/tree-nrv.c @@ -80,11 +80,12 @@ finalize_nrv_r (tree *tp, int *walk_subtrees, void *data) /* No need to walk into types. */ if (TYPE_P (*tp)) *walk_subtrees = 0; - /* If this is a RETURN_EXPR, then set the expression being returned - to RESULT. */ + + /* If this is a RETURN_EXPR, set the expression being returned to RESULT. */ else if (TREE_CODE (*tp) == RETURN_EXPR) TREE_OPERAND (*tp, 0) = dp->result; - /* Replace all occurrences of VAR with RESULT. */ + + /* Otherwise replace all occurrences of VAR with RESULT. */ else if (*tp == dp->var) *tp = dp->result; @@ -213,5 +214,6 @@ struct tree_opt_pass pass_nrv = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func | TODO_ggc_collect /* todo_flags_finish */ + TODO_dump_func | TODO_ggc_collect, /* todo_flags_finish */ + 0 /* letter */ };