fix powerpc bootstrap failure

Message ID
State New
Headers show

Commit Message

Alan Modra June 23, 2011, 2:19 a.m.
I'm applying this with David's blessing to fix the powerpc bootstrap
failure that's been around for two weeks now.  This is Jan's suggested
fix, tweaked to avoid an overly long line.

	PR bootstrap/49383
	* config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
	invocation for 2011-06-09 changes.


Index: gcc/config/rs6000/rs6000.c
--- gcc/config/rs6000/rs6000.c	(revision 175327)
+++ gcc/config/rs6000/rs6000.c	(working copy)
@@ -7430,6 +7430,7 @@  call_ABI_of_interest (tree fndecl)
       /* Interesting functions that we are emitting in this object file.  */
       c_node = cgraph_get_node (fndecl);
+      c_node = cgraph_function_or_thunk_node (c_node, NULL);
       return !cgraph_only_called_directly_p (c_node);
   return false;