From 29e4566cee3ded04a2b0a6d538d86962e4227b25 Mon Sep 17 00:00:00 2001 From: aoliva Date: Tue, 15 Feb 2011 18:36:16 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170185 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cfgexpand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cfgexpand.c') diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 7b1c441b966..6fdb10d2507 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -520,7 +520,7 @@ update_alias_info_with_stack_vars (void) for -O0 where we are preserving even unreferenced variables. */ gcc_assert (DECL_P (decl) && (!optimize - || referenced_var_lookup (DECL_UID (decl)))); + || referenced_var_lookup (cfun, DECL_UID (decl)))); bitmap_set_bit (part, uid); *((bitmap *) pointer_map_insert (decls_to_partitions, (void *)(size_t) uid)) = part; -- cgit v1.2.1