This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000 committed] Fix PowerPC bootstrap
- From: Alan Modra <amodra at gmail dot com>
- To: Pat Haugen <pthaugen at linux dot vnet dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Wed, 13 Apr 2011 10:52:32 +0930
- Subject: Re: [PATCH, rs6000 committed] Fix PowerPC bootstrap
- References: <4DA4BD7D.3080402@linux.vnet.ibm.com>
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.
--
Alan Modra
Australia Development Lab, IBM