There can be at most one .resolver clone per function
authorMichael Ploujnikov <michael.ploujnikov@oracle.com>
Thu, 29 Nov 2018 14:09:50 +0000 (14:09 +0000)
committerMichael Ploujnikov <plouj@gcc.gnu.org>
Thu, 29 Nov 2018 14:09:50 +0000 (14:09 +0000)
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

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index b35b26f6561c832ae042b406eebd438c2884c11c..33c307f65b129ecee9a20def0dd6cfe9367b912f 100644 (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
index d986207a0c6528c119efa0ffe93a58d0cb2c73d7..cf5d0cb236ff7501126f5ddab27d4e309f7fbbb5 100644 (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);