* tree-inline.c (copy_body_r): Do not replace ret_label.

From-SVN: r77820
This commit is contained in:
Josef Zlomek 2004-02-14 20:38:46 +01:00 committed by Josef Zlomek
parent 2cf20d3252
commit 5852680bfc
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-02-14 Josef Zlomek <zlomekj@suse.cz>
* tree-inline.c (copy_body_r): Do not replace ret_label.
2004-02-14 Jan Hubicka <jh@suse.cz>
* i386.c (x86_four_jump_limit): New variable.

View File

@ -572,8 +572,11 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data)
/* Local variables and labels need to be replaced by equivalent
variables. We don't want to copy static variables; there's only
one of those, no matter how many times we inline the containing
function. */
else if ((*lang_hooks.tree_inlining.auto_var_in_fn_p) (*tp, fn))
function.
We do not also want to copy the label which we put into
GOTO_STMT which replaced RETURN_STMT. */
else if (*tp != id->ret_label
&& (*lang_hooks.tree_inlining.auto_var_in_fn_p) (*tp, fn))
{
tree new_decl;