diff mbox

[rs6000,committed] Fix PowerPC bootstrap

Message ID 4DA4BD7D.3080402@linux.vnet.ibm.com
State New
Headers show

Commit Message

Pat Haugen April 12, 2011, 9 p.m. UTC
Discussed the following with Martin on irc to bring rs6000 target up to date 
with his changes to the cgraph code.  Bootstrap/regtest on powerpc64-linux. 
Committed as obvious.

-Pat


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

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

Comments

Alan Modra April 13, 2011, 1:22 a.m. UTC | #1
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.
diff mbox

Patch

Index: gcc/config/rs6000/rs6000.c
===================================================================
--- 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;