From patchwork Thu Mar 24 14:43:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 64364 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp695036lbc; Thu, 24 Mar 2016 07:44:10 -0700 (PDT) X-Received: by 10.66.220.162 with SMTP id px2mr13370521pac.15.1458830650842; Thu, 24 Mar 2016 07:44:10 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id vz3si81690pab.93.2016.03.24.07.44.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2016 07:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-423806-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-423806-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-423806-patch=linaro.org@gcc.gnu.org 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=cWLqTht3WIpwxTu5DD9F94/Bv2nAqHAelesW3MMQTV3e8E qTo8eqowYQsA1F1KiuvjHrydef0ls1yXCZ2Roi8NlrDI0ryM3mJe9JK55IOinYk7 Ktx22GT5M9EGU8pJLvq6wvElMr/srazIPDwdCEgiB2iqWfe9yncj8ptDMCcDI= 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=6pljoL7m7qGxSsJmA81MTVZ3IdA=; b=aMjjweAsxPhIzHkErTq7 kKm5rwyT75oJO+EysdFyERSAuScE8UD4tFLb4yrcH8cG9sYRGWr/QR/bYkkjDWEw pkRTNVW7rpwyzarHSFDfLMRYcUIErvw6DoDZBumtXeH8/zGAXMDHIGDCp7nq6ptI jhHkHIjQV5IC6iJBflzvCJw= Received: (qmail 15375 invoked by alias); 24 Mar 2016 14:43:24 -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 15291 invoked by uid 89); 24 Mar 2016 14:43:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:sk:089e013 X-HELO: mail-ig0-f172.google.com Received: from mail-ig0-f172.google.com (HELO mail-ig0-f172.google.com) (209.85.213.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 24 Mar 2016 14:43:13 +0000 Received: by mail-ig0-f172.google.com with SMTP id l20so13691935igf.0 for ; Thu, 24 Mar 2016 07:43:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=dSjIXl22P6sG1kaFsE7fkjHr0EADUKoQYnMTc7MGVGY=; b=SOFBbFWGh/wMmBJZAigYqye8yqquOqWhHd67iBjOomOl4lkxqnqwm67q9UmfOsRzxP t3IKDzTrQ7LFb5VU86oPnJAg7CLPiGp96/szs/5dLFg70t86svTVXpX8YStTVuG2H1Ky smStIDuEuFfeYzvnBqcX9p17b4I5/HbGPYMjm3XnmO69GEhfSDH9sOTrayZ69aAmgiNh xB9YssLzi5xhnHCt37uHTY8YFPcIux2TS8+jRog9cUNTd0v5MDQbg0tp4e04MFSxSLIL dminSJzPVFD64sCoCy8C+UrSFJNrJUa+GVgsZWa8hfeRc507qXxlsR0G+M3qyrLW6ng0 tG+w== X-Gm-Message-State: AD7BkJJLy/3lx5ro4/uj5/UklClnQJxCylrElWOpvG6rAFkfpr+csJjc3lPQwH1BqMivXiRv4KAtwpzT33xFAgdA MIME-Version: 1.0 X-Received: by 10.50.73.229 with SMTP id o5mr8818178igv.75.1458830591115; Thu, 24 Mar 2016 07:43:11 -0700 (PDT) Received: by 10.36.28.202 with HTTP; Thu, 24 Mar 2016 07:43:11 -0700 (PDT) Date: Thu, 24 Mar 2016 20:13:11 +0530 Message-ID: Subject: [PR70366] fix chromium build failure with LTO due to segfault in inline_call From: Prathamesh Kulkarni To: Richard Biener , gcc Patches X-IsSubscribed: yes Hi, The following fix suggested by Richard fixes chromium build failing due to segfault in inline_call. Bootstrapped and tested on x86_64-unknown-linux-gnu. Cross-tested on arm*-*-* and aarch64*-*-*. Ok for trunk ? Thanks, Prathamesh diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c index 5dc0b5a..f966fb0 100644 --- a/gcc/ipa-inline-transform.c +++ b/gcc/ipa-inline-transform.c @@ -329,8 +329,7 @@ inline_call (struct cgraph_edge *e, bool update_original, { struct gcc_options opts = global_options; - cl_optimization_restore (&opts, - TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))); + cl_optimization_restore (&opts, opts_for_fn (to->decl)); opts.x_flag_strict_aliasing = false; if (dump_file) fprintf (dump_file, "Dropping flag_strict_aliasing on %s:%i\n",