diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2011-02-15 18:36:16 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2011-02-15 18:36:16 +0000 |
commit | 27c6b08686959f731523cb673db850bfd435795b (patch) | |
tree | 1b4083e3da8dae77376ffb0717557ef0a7be9e34 /gcc/tree-dfa.c | |
parent | 679e81836971b405e643a8ba12ba084b76b15508 (diff) | |
download | gcc-27c6b08686959f731523cb673db850bfd435795b.zip gcc-27c6b08686959f731523cb673db850bfd435795b.tar.gz gcc-27c6b08686959f731523cb673db850bfd435795b.tar.bz2 |
re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-flow.h (referenced_var_lookup): Add fn parameter.
Adjust all callers.
* tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
* tree-flow-inline.h: Adjust.
* gimple-pretty-print.c: Adjust.
* tree-into-ssa.c: Adjust.
* tree-ssa.c: Adjust.
* cfgexpand.c: Adjust.
From-SVN: r170185
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 05a682b..f37c30f 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -488,12 +488,12 @@ find_referenced_vars_in (gimple stmt) variable. */ tree -referenced_var_lookup (unsigned int uid) +referenced_var_lookup (struct function *fn, unsigned int uid) { tree h; struct tree_decl_minimal in; in.uid = uid; - h = (tree) htab_find_with_hash (gimple_referenced_vars (cfun), &in, uid); + h = (tree) htab_find_with_hash (gimple_referenced_vars (fn), &in, uid); return h; } |