There can be at most one .resolver clone per function

2018-11-29  Michael Ploujnikov  <michael.ploujnikov@oracle.com>

	There can be at most one .resolver clone per function
	* config/rs6000/rs6000.c (make_resolver_func): Generate
	resolver symbol with clone_function_name instead of
	clone_function_name_numbered.

From-SVN: r266617
This commit is contained in:
Michael Ploujnikov 2018-11-29 14:09:50 +00:00 committed by Michael Ploujnikov
parent a62b871d65
commit 55da34ebc2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2018-11-29 Michael Ploujnikov <michael.ploujnikov@oracle.com>
There can be at most one .resolver clone per function
* config/rs6000/rs6000.c (make_resolver_func): Generate
resolver symbol with clone_function_name instead of
clone_function_name_numbered.
2018-11-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/88243

View File

@ -37282,7 +37282,7 @@ make_resolver_func (const tree default_decl,
{
/* Make the resolver function static. The resolver function returns
void *. */
tree decl_name = clone_function_name_numbered (default_decl, "resolver");
tree decl_name = clone_function_name (default_decl, "resolver");
const char *resolver_name = IDENTIFIER_POINTER (decl_name);
tree type = build_function_type_list (ptr_type_node, NULL_TREE);
tree decl = build_fn_decl (resolver_name, type);