Patchwork [rs6000,committed] Fix PowerPC bootstrap

login
register
mail settings
Submitter Pat Haugen
Date April 15, 2011, 8:54 p.m.
Message ID <4DA8B08B.4020900@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/91439/
State New
Headers show

Comments

Pat Haugen - April 15, 2011, 8:54 p.m.
On 04/12/2011 08:22 PM, Alan Modra wrote:
> On Tue, Apr 12, 2011 at 04:00:45PM -0500, Pat Haugen wrote:
>> >  --- gcc/config/rs6000/rs6000.c  (revision 172327)
>> >  +++ gcc/config/rs6000/rs6000.c  (working copy)
>> >  @@ -7976,7 +7976,7 @@ call_ABI_of_interest (tree fndecl)
>> >           return true;
>> >
>> >          /* Interesting functions that we are emitting in this object file.  */
>> >  -      c_node = cgraph_node (fndecl);
>> >  +      c_node = cgraph_get_create_node (fndecl);
>> >          return !cgraph_only_called_directly_p (c_node);
>> >        }
>> >      return false;
> I think we should use cgraph_get_node here.

OK, fixed with following.


2011-04-15  Pat Haugen <pthaugen@us.ibm.com>

	* config/rs6000/rs6000.c (call_ABI_of_interest): Call
	cgraph_get_node instead of cgraph_get_create_node.

Patch

Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c  (revision 172498)
+++ gcc/config/rs6000/rs6000.c  (working copy)
@@ -7976,7 +7976,7 @@  call_ABI_of_interest (tree fndecl)
         return true;

        /* Interesting functions that we are emitting in this object file.  */
-      c_node = cgraph_get_create_node (fndecl);
+      c_node = cgraph_get_node (fndecl);
        return !cgraph_only_called_directly_p (c_node);
      }
    return false;