public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, rs6000 committed] Fix PowerPC bootstrap
@ 2011-04-12 21:00 Pat Haugen
  2011-04-13  1:22 ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Pat Haugen @ 2011-04-12 21:00 UTC (permalink / raw)
  To: gcc-patches; +Cc: David Edelsohn

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.


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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, rs6000 committed] Fix PowerPC bootstrap
  2011-04-12 21:00 [PATCH, rs6000 committed] Fix PowerPC bootstrap Pat Haugen
@ 2011-04-13  1:22 ` Alan Modra
  2011-04-15 21:49   ` Pat Haugen
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2011-04-13  1:22 UTC (permalink / raw)
  To: Pat Haugen; +Cc: gcc-patches, David Edelsohn

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, rs6000 committed] Fix PowerPC bootstrap
  2011-04-13  1:22 ` Alan Modra
@ 2011-04-15 21:49   ` Pat Haugen
  0 siblings, 0 replies; 3+ messages in thread
From: Pat Haugen @ 2011-04-15 21:49 UTC (permalink / raw)
  To: gcc-patches; +Cc: David Edelsohn, Alan Modra

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.


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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-15 20:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-12 21:00 [PATCH, rs6000 committed] Fix PowerPC bootstrap Pat Haugen
2011-04-13  1:22 ` Alan Modra
2011-04-15 21:49   ` Pat Haugen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).