Commit 58579435 by Jan Hubicka Committed by Jan Hubicka

decl2.c (mark_member_pointers): Verify that member pointer points to the function.

	* decl2.c (mark_member_pointers): Verify that member pointer points to
	the function.

From-SVN: r69902
parent b7365957
Mon Jul 28 23:55:10 CEST 2003 Jan Hubicka <jh@suse.cz>
* decl2.c (mark_member_pointers): Verify that member pointer points to
the function.
2003-07-28 Nathan Sidwell <nathan@codesourcery.com> 2003-07-28 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (begin_compound_stmt): No scope arg is a bool. * cp-tree.h (begin_compound_stmt): No scope arg is a bool.
......
...@@ -2594,7 +2594,8 @@ static tree ...@@ -2594,7 +2594,8 @@ static tree
mark_member_pointers (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED, mark_member_pointers (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED,
void *data ATTRIBUTE_UNUSED) void *data ATTRIBUTE_UNUSED)
{ {
if (TREE_CODE (*tp) == PTRMEM_CST) if (TREE_CODE (*tp) == PTRMEM_CST
&& TYPE_PTRMEMFUNC_P (TREE_TYPE (*tp)))
cgraph_mark_needed_node (cgraph_node (PTRMEM_CST_MEMBER (*tp)), 1); cgraph_mark_needed_node (cgraph_node (PTRMEM_CST_MEMBER (*tp)), 1);
return 0; return 0;
} }
......
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