From patchwork Tue Oct 14 15:08:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Stupachenko X-Patchwork-Id: 399480 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C2D91140088 for ; Wed, 15 Oct 2014 02:08:58 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=xMbx6+wq3faCNB4dCPQWvCeoc83XqPOiMAYMp/kjX+MENj IoHsIL0AshezhWueRqD8cBbBivYcEoDwe9xL/d0TIxyvN6ZM2rszuv1Mgn98QK82 RYuK1WgFiNJQXB9yxOS9j9PCoGKNk+kP978797ntbBoRiqIlzms5c2Cm/hp6s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=cg2TZffc2W5opGE8+NslroIr+p8=; b=xip5+I4jh8kQOUI+RG0I goLjfsayBLXpqpqqmw7kvlvBCftmldEzsM2PtOSBEeLIduaMHedW9eGAFYMn6sQD 4+XGwmiS7pa6BZ3P02xyZ5e/sjZV6Pl1/I/jorFY7Fybx4b6LTW57ElHkd5U3l26 IzNsL+YW82r9Br/nhERjFS8= Received: (qmail 5520 invoked by alias); 14 Oct 2014 15:08:50 -0000 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 Received: (qmail 5508 invoked by uid 89); 14 Oct 2014 15:08:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KAM_STOCKGEN, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f169.google.com Received: from mail-ig0-f169.google.com (HELO mail-ig0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 14 Oct 2014 15:08:49 +0000 Received: by mail-ig0-f169.google.com with SMTP id uq10so17652341igb.2 for ; Tue, 14 Oct 2014 08:08:47 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.30.134 with SMTP id s6mr7433244igh.46.1413299327577; Tue, 14 Oct 2014 08:08:47 -0700 (PDT) Received: by 10.107.6.95 with HTTP; Tue, 14 Oct 2014 08:08:47 -0700 (PDT) Date: Tue, 14 Oct 2014 19:08:47 +0400 Message-ID: Subject: [PATCH x86, pr63534] Fix go bootstrap From: Evgeny Stupachenko To: Uros Bizjak , Jakub Jelinek , Jeff Law , vmakarov , GCC Patches X-IsSubscribed: yes Hi, Bootstaped with --enable-languages=c,c++,fortran,lto,go passed. Make check in progress. Is it ok? ChangeLog 2014-10-14 Evgeny Stupachenko * config/i386/i386.c (ix86_expand_split_stack_prologue): Make __morestack calls local. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index a3ca2ed..5117572 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -11999,7 +11999,10 @@ ix86_expand_split_stack_prologue (void) REG_BR_PROB_BASE - REG_BR_PROB_BASE / 100); if (split_stack_fn == NULL_RTX) - split_stack_fn = gen_rtx_SYMBOL_REF (Pmode, "__morestack"); + { + split_stack_fn = gen_rtx_SYMBOL_REF (Pmode, "__morestack"); + SYMBOL_REF_FLAGS (split_stack_fn) |= SYMBOL_FLAG_LOCAL; + } fn = split_stack_fn; /* Get more stack space. We pass in the desired stack space and the @@ -12044,9 +12047,11 @@ ix86_expand_split_stack_prologue (void) gcc_assert ((args_size & 0xffffffff) == args_size); if (split_stack_fn_large == NULL_RTX) - split_stack_fn_large = - gen_rtx_SYMBOL_REF (Pmode, "__morestack_large_model"); - + { + split_stack_fn_large = + gen_rtx_SYMBOL_REF (Pmode, "__morestack_large_model"); + SYMBOL_REF_FLAGS (split_stack_fn_large) |= SYMBOL_FLAG_LOCAL; + } if (ix86_cmodel == CM_LARGE_PIC) { rtx_code_label *label;