diff options
author | Richard Guenther <rguenther@suse.de> | 2010-04-23 15:46:23 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-04-23 15:46:23 +0000 |
commit | 4e708ff7549987c941fb0f54c159e362381780d7 (patch) | |
tree | dc172ad7cc4c1bbb96829042298fa2052a56568d /gcc | |
parent | 7a38245d60291e0b41f565dc9a9ea6bc96bb933e (diff) | |
download | gcc-4e708ff7549987c941fb0f54c159e362381780d7.tar.gz |
re PR tree-optimization/43572 (FAIL: gfortran.dg/PR19872.f execution test; formatted read - wrong numbers)
2010-04-23 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43572
* tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
From-SVN: r158671
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-tailcall.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 586f1e6b670..c7eecfb50f5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2010-04-23 Richard Guenther <rguenther@suse.de> + PR tree-optimization/43572 + * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses. + +2010-04-23 Richard Guenther <rguenther@suse.de> + PR lto/43455 * tree-inline.c (tree_can_inline_p): Also check compatibility of return types. diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 4d2422aa623..a9f01919b4d 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -458,7 +458,8 @@ find_tail_calls (basic_block bb, struct tailcall **ret) to local variables. */ FOR_EACH_REFERENCED_VAR (var, rvi) { - if (!is_global_var (var) + if (TREE_CODE (var) != PARM_DECL + && auto_var_in_fn_p (var, cfun->decl) && ref_maybe_used_by_stmt_p (call, var)) return; } |