From patchwork Wed Nov 14 09:31:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Tobler X-Patchwork-Id: 198845 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 858BD2C007D for ; Wed, 14 Nov 2012 20:31:45 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1353490305; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:To:Cc:From:Reply-to:Subject:Message-ID:MIME-Version: Content-Transfer-Encoding:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=tthyCP1ZCz0NSzt2KVqN0zsA58U=; b=y6LxawWkchgdDQx BxnTGvkIDauUcx00zw82qpw6QnIQsj23bkrnJ3fEOZslTtOpFP8Z09E2dL1QngDp VfQUJWWHdNeJsX93GNhzjzH1592Z39WdwOR/xAVE5gs1oYzT0NrlG6gwn2GfU3KL A3WBLXpcvTN7yCPGvmNaPMGuPm3s= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:To:Cc:From:Reply-to:Subject:Message-ID:MIME-Version:Content-Transfer-Encoding:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=OgygW6gUcHFDw8A8n0AlSD2wO5lQGp7AvMXFqxEIGo34w0E++bCrqd9xRzm7Oq JUPLvp9PbOHXlRze53rSsbNLs4HIGxrFnZp5Kb0XECy4IvRC4snZqPxawkawkECJ zQxX12ou/Bj/ApatoDMd727HYoOj73Z5fAurB8NrS0r64=; Received: (qmail 18284 invoked by alias); 14 Nov 2012 09:31:41 -0000 Received: (qmail 18274 invoked by uid 22791); 14 Nov 2012 09:31:40 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mx1.flashcable.ch (HELO mx1.flashcable.ch) (81.92.96.30) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Nov 2012 09:31:32 +0000 Received: from localhost (localhost [127.0.0.1]) by mx1.flashcable.ch (8.13.8/8.13.8/Submit_local) with ESMTP id qAE9VUc6092476; Wed, 14 Nov 2012 10:31:30 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Received: from phpmailer (borderline21.nexus-ag.com [212.203.104.226]) by localhost with HTTPS (UebiMiau); Wed, 14 Nov 2012 10:31:30 +0100 Date: Wed, 14 Nov 2012 10:31:30 +0100 To: gcc-patches@gcc.gnu.org Cc: tmsriram@google.com From: Andreas Tobler Reply-to: Andreas Tobler Subject: Fix bootstrap on non-ifunc capable targets (i386) Message-ID: <7d26058a558a7b98a59f3190e7c4f66f@212.203.104.226> MIME-Version: 1.0 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 Hi all, this commit: 193486 broke bootstrap on targets which do not have HAVE_GNU_INDIRECT_FUNCTION. Ok to commit? TIA, Andreas Index: config/i386/i386.c =================================================================== --- config/i386/i386.c (revision 193495) +++ config/i386/i386.c (working copy) @@ -28907,12 +28907,15 @@ struct cgraph_node *node = NULL; struct cgraph_node *default_node = NULL; struct cgraph_function_version_info *node_v = NULL; - struct cgraph_function_version_info *it_v = NULL; struct cgraph_function_version_info *first_v = NULL; tree dispatch_decl = NULL; + +#if defined (ASM_OUTPUT_TYPE_DIRECTIVE) && HAVE_GNU_INDIRECT_FUNCTION + struct cgraph_function_version_info *it_v = NULL; struct cgraph_node *dispatcher_node = NULL; struct cgraph_function_version_info *dispatcher_version_info = NULL; +#endif struct cgraph_function_version_info *default_version_info = NULL;