Bail out binds_to_current_def_p for ifunc functions.

2017-02-03  Martin Liska  <mliska@suse.cz>

	* symtab.c (symtab_node::binds_to_current_def_p): Bail out
	in case of a function with ifunc attribute.

From-SVN: r245154
This commit is contained in:
Martin Liska 2017-02-03 16:15:51 +01:00 committed by Martin Liska
parent 9e57787b84
commit 31a31c9dc1
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-02-03 Martin Liska <mliska@suse.cz>
* symtab.c (symtab_node::binds_to_current_def_p): Bail out
in case of a function with ifunc attribute.
2017-02-03 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::dump): Dump function version info.

View File

@ -2225,6 +2225,8 @@ symtab_node::binds_to_current_def_p (symtab_node *ref)
if (transparent_alias)
return definition
&& get_alias_target()->binds_to_current_def_p (ref);
if (lookup_attribute ("ifunc", DECL_ATTRIBUTES (decl)))
return false;
if (decl_binds_to_current_def_p (decl))
return true;