From patchwork Thu Oct 11 10:12:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Hua X-Patchwork-Id: 982378 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-487313-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="toibtFD1"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oIRAr9Yr"; dkim-atps=neutral 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 42W6HG3lwPz9s3T for ; Thu, 11 Oct 2018 21:13:14 +1100 (AEDT) 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:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=EeIf8LaMn3xOo6nakhCkIfgcerHXsrHxSVKhFiUjuOo gH6lu55y/Rsjzw9ZB6+Wz38CgiQiwyV3pD11tkUzGLNILpiY5sAXYrs7sK3DUzia ls+NPQj15vnF1d+qMbtNnR3cUVWYclSMNFB+YiZWJ9IhKo7W7nwbFarffOJZFEMU = 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:from:date:message-id:subject:to:cc:content-type; s=default; bh=PrnJonQZ29LVhyty2uimoAvkDCY=; b=toibtFD1dKSS8EKNk zvQCY8svMAh6u5r+yptnIQ9m3kUkLutfy3kaoWBZf38jSfZRYkmstV+ewyX3we+S LFAB0+BDRsMxzhnZkVu4P+aUD3aHwpsvRjuwdSh8Clf8HZ8nvvQS5DqeVsTafs2B jTqVsa6yEDs+URKKZgAU8WPuD8= Received: (qmail 84523 invoked by alias); 11 Oct 2018 10:13:07 -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 84495 invoked by uid 89); 11 Oct 2018 10:13:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Considering, clone, DECL_NAME, decl_name X-HELO: mail-oi1-f194.google.com Received: from mail-oi1-f194.google.com (HELO mail-oi1-f194.google.com) (209.85.167.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Oct 2018 10:13:05 +0000 Received: by mail-oi1-f194.google.com with SMTP id l197-v6so6564236oib.8 for ; Thu, 11 Oct 2018 03:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=cNsGwPTzoAoHdqSJlE5JceS/O6z3g1uLzclduF3kFx0=; b=oIRAr9Yrk1+PzTXY3rb+PeaqiWT9V3NUS3JCUKC3Jk9h9QQY66vic70QtGmVj15QJ9 tAI8UHiesohqrkRqP/infkrEW5LyWruMPJ/FE6ZkiYNiZLAnPiMtuxoB5+lgiBEf6gq2 cJhvwHt8yRB+9nK97c5ZDZqYmQsrGxGtWVkxMo1AWC2ptW26SBl6gBmbwiVNszB6p5Z7 49/R9xbpw5yqzyG3hVnaC0aaNa4MSuNvh4oGXiwv0CTctVOWScgrX5fOGZV6caNiby1U DBTd20pr4jCKOj2U9JjV1PpL4Cxj0sU0v4pyZe1eFXUkCEq/6Vx65Y4+qQxDx2w7M3rZ rp8w== MIME-Version: 1.0 From: Paul Hua Date: Thu, 11 Oct 2018 18:12:51 +0800 Message-ID: Subject: [PATCH] Fix pr87156 ICE building libstdc++ for mips64 To: gcc-patches Cc: Jan Hubicka , "Jeff Law (law@redhat.com)" X-IsSubscribed: yes Hi: The bug pr87156 make MIPS target bootstrap fail a month ago. The attached patch that posted under bugzilla by Jan Hubicka fixed the bug. Bootstrapped and reg-tested on mips64el-linux-gnu and x86_64-pc-linux-gnu. Considering that Jan not very active, Is it OK for commits the patch under Jan Hubicka behalf ? Thanks Paul Hua --------------------------------------------------------------------- 2018-10-11 Jan Hubicka PR target/87156 * cgraphclones.c (cgraph_node::create_version_clone_with_body): Set new_decl virtual flag to zero. diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index 2af45bd4fec..189cb31a5dc 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -968,6 +968,8 @@ cgraph_node::create_version_clone_with_body SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl)); SET_DECL_RTL (new_decl, NULL); + DECL_VIRTUAL_P (new_decl) = 0; + /* When the old decl was a con-/destructor make sure the clone isn't. */ DECL_STATIC_CONSTRUCTOR (new_decl) = 0; DECL_STATIC_DESTRUCTOR (new_decl) = 0;