fix powerpc bootstrap failure

Submitted by Alan Modra on June 23, 2011, 2:19 a.m.

Details

Message ID 20110623021959.GV21332@bubble.grove.modra.org
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.

Patch hide | download patch | download mbox

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;