diff mbox

Add attribute((target_clone(...))) to PowerPC

Message ID 20170605212034.GA15598@ibm-tiger.the-meissners.org
State New
Headers show

Commit Message

Michael Meissner June 5, 2017, 9:20 p.m. UTC
Jan Hubicka <hubicka@ucw.cz> recently changed the calling sequence to
init_lowered_empty_function, and my patch doesn't build any more.  I cloned the
changes made in the x86_64 port and committed the following change (subversion
id 248902) so that the rs6000 build should build once again.

2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/rs6000.c (make_resolver_func): Update
	init_lowered_empty_function call.
diff mbox

Patch

Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c	(revision 248901)
+++ gcc/config/rs6000/rs6000.c	(working copy)
@@ -40493,7 +40493,8 @@  make_resolver_func (const tree default_d
 
   gimplify_function_tree (decl);
   push_cfun (DECL_STRUCT_FUNCTION (decl));
-  *empty_bb = init_lowered_empty_function (decl, false, 0);
+  *empty_bb = init_lowered_empty_function (decl, false,
+					   profile_count::uninitialized ());
 
   cgraph_node::add_new_function (decl, true);
   symtab->call_cgraph_insertion_hooks (cgraph_node::get_create (decl));