Commit 2344a722 by Jan Hubicka Committed by Jan Hubicka

problem that current decl duplication mechanizm > > /* If we didn't remap this variable...


problem that current decl duplication mechanizm
>
>         /* If we didn't remap this variable, so we can't mess with its
>   	 TREE_CHAIN.  If we remapped this variable to the return slot, it's

From-SVN: r72539
parent a352244f
2003-10-15 Jan Hubicka <jh@suse.cz>
pr c++/12574
* decl2.c (cxx_callgraph_analyze_expr): deal with baselink.
2003-10-14 Jason Merrill <jason@redhat.com> 2003-10-14 Jason Merrill <jason@redhat.com>
PR c++/11878 PR c++/11878
......
...@@ -2515,16 +2515,21 @@ cxx_callgraph_analyze_expr (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED, ...@@ -2515,16 +2515,21 @@ cxx_callgraph_analyze_expr (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED,
{ {
tree t = *tp; tree t = *tp;
switch (TREE_CODE (t)) if (flag_unit_at_a_time)
{ switch (TREE_CODE (t))
case PTRMEM_CST: {
if (TYPE_PTRMEMFUNC_P (TREE_TYPE (t))) case PTRMEM_CST:
cgraph_mark_needed_node (cgraph_node (PTRMEM_CST_MEMBER (t))); if (TYPE_PTRMEMFUNC_P (TREE_TYPE (t)))
break; cgraph_mark_needed_node (cgraph_node (PTRMEM_CST_MEMBER (t)));
break;
default: case BASELINK:
break; if (TREE_CODE (BASELINK_FUNCTIONS (t)) == FUNCTION_DECL)
} cgraph_mark_needed_node (cgraph_node (BASELINK_FUNCTIONS (t)));
break;
default:
break;
}
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment