From patchwork Fri Mar 20 01:29:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 452412 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id A28BC14007F for ; Fri, 20 Mar 2015 12:29:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=EZHLzIJn; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CB94989E95; Fri, 20 Mar 2015 01:29:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G3jYCxcf9SfW; Fri, 20 Mar 2015 01:29:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2ABB889FC2; Fri, 20 Mar 2015 01:29:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id DF2C81C292F for ; Fri, 20 Mar 2015 01:29:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DB0B1314FA for ; Fri, 20 Mar 2015 01:29:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8M6cOobVgK2e for ; Fri, 20 Mar 2015 01:29:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by silver.osuosl.org (Postfix) with ESMTPS id 0672F30C78 for ; Fri, 20 Mar 2015 01:29:15 +0000 (UTC) Received: by lbcgn8 with SMTP id gn8so65293820lbc.2 for ; Thu, 19 Mar 2015 18:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ZLVhlPV/BpQvRdgDquWYBPExLqeylK31dYvb8ws1iAg=; b=EZHLzIJnAv5c4lDhnqEkcpGe/R4tWCncfcY6cCHvm5sOs4Suw8ZdZGWa3iwZPNRofz FvEP3d0Jgs159XeJ5y0djb84okHQH751a64CTR/H4TUZOrcCgCfu6W2TenUKkSzGJ4ka jhBmniApDfneTT1XAwkrshLiVL2/hectW9fpAOh16P1dhFhcFDRkxXQeAaYtNHXwpzJb 0T5oVghLKJnONyp/12BpASLjm/Q1gdGGGknjhN5S/Hxbi8CRi/i+JGNqYY7SnF8jl1ui ueWo1rSzoNNcPBF4gCVA6Wci/KW16BWYZnuT1E9zH+gXxei6sphOQGh7x34akArhcb56 /8lg== X-Received: by 10.112.205.103 with SMTP id lf7mr21983487lbc.37.1426814952841; Thu, 19 Mar 2015 18:29:12 -0700 (PDT) Received: from grizzly.metropolis ([5.19.183.212]) by mx.google.com with ESMTPSA id i9sm606299lbs.26.2015.03.19.18.29.11 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Mar 2015 18:29:11 -0700 (PDT) From: Max Filippov To: buildroot@uclibc.org Date: Fri, 20 Mar 2015 04:29:01 +0300 Message-Id: <1426814941-25089-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.7.7.6 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH] package/gcc: fix ICE building QT5 on xtensa X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add fix for GCC PR 64896 from the gcc-4_9-branch of gcc. This fixes bugzilla bug 7961. Signed-off-by: Max Filippov --- package/gcc/4.9.2/110-pr64896.patch | 59 +++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) create mode 100644 package/gcc/4.9.2/110-pr64896.patch diff --git a/package/gcc/4.9.2/110-pr64896.patch b/package/gcc/4.9.2/110-pr64896.patch new file mode 100644 index 0000000..92b6cb8 --- /dev/null +++ b/package/gcc/4.9.2/110-pr64896.patch @@ -0,0 +1,59 @@ +From fc39d7d6f0ac90086814306a43de38ad65c13f13 Mon Sep 17 00:00:00 2001 +From: yroux +Date: Tue, 10 Mar 2015 19:20:30 +0000 +Subject: [PATCH] gcc/ 2015-03-10 Yvan Roux + + Backport from trunk r220489. + 2015-02-06 Jakub Jelinek + + PR ipa/64896 + * cgraphunit.c (cgraph_node::expand_thunk): If + restype is not is_gimple_reg_type nor the thunk_fndecl + returns aggregate_value_p, set restmp to a temporary variable + instead of resdecl. + +gcc/testsuite/ +2015-03-10 Yvan Roux + + Backport from trunk r220489. + 2015-02-06 Jakub Jelinek + + PR ipa/64896 + * g++.dg/ipa/pr64896.C: New test. + + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@221333 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + gcc/ChangeLog | 11 +++++++++++ + gcc/cgraphunit.c | 11 ++++++++--- + gcc/testsuite/ChangeLog | 8 ++++++++ + gcc/testsuite/g++.dg/ipa/pr64896.C | 29 +++++++++++++++++++++++++++++ + 4 files changed, 56 insertions(+), 3 deletions(-) + create mode 100644 gcc/testsuite/g++.dg/ipa/pr64896.C + +diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c +index 8f57607..130fc0d 100644 +--- a/gcc/cgraphunit.c ++++ b/gcc/cgraphunit.c +@@ -1572,9 +1572,14 @@ expand_thunk (struct cgraph_node *node, bool output_asm_thunks) + restmp = gimple_fold_indirect_ref (resdecl); + else if (!is_gimple_reg_type (restype)) + { +- restmp = resdecl; +- add_local_decl (cfun, restmp); +- BLOCK_VARS (DECL_INITIAL (current_function_decl)) = restmp; ++ if (aggregate_value_p (resdecl, TREE_TYPE (thunk_fndecl))) ++ { ++ restmp = resdecl; ++ add_local_decl (cfun, restmp); ++ BLOCK_VARS (DECL_INITIAL (current_function_decl)) = restmp; ++ } ++ else ++ restmp = create_tmp_var (restype, "retval"); + } + else + restmp = create_tmp_reg (restype, "retval"); +-- +1.8.1.4 +