From patchwork Thu Jun 23 02:19:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 101578 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id BF64DB6F83 for ; Thu, 23 Jun 2011 12:20:22 +1000 (EST) Received: (qmail 2862 invoked by alias); 23 Jun 2011 02:20:20 -0000 Received: (qmail 2854 invoked by uid 22791); 23 Jun 2011 02:20:20 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jun 2011 02:20:06 +0000 Received: by iym10 with SMTP id 10so1422325iym.20 for ; Wed, 22 Jun 2011 19:20:06 -0700 (PDT) Received: by 10.42.150.66 with SMTP id z2mr1444774icv.462.1308795605912; Wed, 22 Jun 2011 19:20:05 -0700 (PDT) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id s2sm643430ibe.18.2011.06.22.19.20.03 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 19:20:04 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 1E363170C1B4; Thu, 23 Jun 2011 11:49:59 +0930 (CST) Date: Thu, 23 Jun 2011 11:49:59 +0930 From: Alan Modra To: gcc-patches@gcc.gnu.org Cc: David Edelsohn Subject: fix powerpc bootstrap failure Message-ID: <20110623021959.GV21332@bubble.grove.modra.org> Mail-Followup-To: gcc-patches@gcc.gnu.org, David Edelsohn MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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. 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;