From patchwork Fri May 25 09:58:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 161269 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 372ACB6F9A for ; Fri, 25 May 2012 19:58:28 +1000 (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=1338544709; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=SLcxC7j gr/I/mooBYdxZu/eoOKU=; b=GPxP4FohEED/M4aYcKj0UwsCEk/2JrHUTjX+31y 2Agg//zuhFWK7Lg9z4TEmWa9lY8Xl95kMviQBV50eIejgc6WlEckyecCn4M5xRoa jnRn2spmgpyI0k9TQ+5GkgJlZfnClnPg+HvMRhTMaZbagMp2n79i2H607uySSUYL WeOE= 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:X-Google-DKIM-Signature:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=D/OH+i+gYOfkouGiCKF97zbCYZXUcrw/oqQVN1WRsUQAuXfBepLJck65/VDN9v ewKpZAAIvuIcgVQLRuc6mvewDQxqucyLKLelAEVrunBC/Ml/xeOq31cPPBM8txnZ LZAF4WOOVA8B/KVFr8b0CSemBphTOu3idLHQyv7R6fico=; Received: (qmail 5224 invoked by alias); 25 May 2012 09:58:21 -0000 Received: (qmail 5209 invoked by uid 22791); 25 May 2012 09:58:20 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_QE X-Spam-Check-By: sourceware.org Received: from mail-qa0-f50.google.com (HELO mail-qa0-f50.google.com) (209.85.216.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 May 2012 09:58:07 +0000 Received: by qafl39 with SMTP id l39so1177084qaf.9 for ; Fri, 25 May 2012 02:58:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=+7IqBHpxnOPUgqSyXCkGCCRjGa7bx5Ja5RFFLpNegek=; b=n9Lz9AzdAao6FBNaPbY4FECqHVLZWN6DWK7v7Aeu3hdTH2mP/DB9FirLeyJ8Nhxkj8 Sa5oziFYDUoqPK6siAanDrsb3uyBKXk5m+gmLJzf8ZfseSRJacIh/7+PuRsd6BTAFyNr bU1gw7Djh9gUxob3w2igo8F7AvJK66Dgeu19hBCHeNGGFQbUvfAg1PxTtkRUKIyn4/fe GkFoHK9vJgzoBCjRTEi5AVle4dc6cD41wDaohKqshZG8bW5qRVpXfcTp3QYjAZRzHLrU pmaAlhpdncSxuwa1HAQLFnvygGGeC0fOwY3dDxDLc5Z5QPbrQIlJqS4zyPSD3njuX+fF p5/A== MIME-Version: 1.0 Received: by 10.229.136.65 with SMTP id q1mr981619qct.93.1337939885919; Fri, 25 May 2012 02:58:05 -0700 (PDT) Received: by 10.224.137.73 with HTTP; Fri, 25 May 2012 02:58:05 -0700 (PDT) Date: Fri, 25 May 2012 10:58:05 +0100 Message-ID: Subject: [Patch ARM 4_7-branch ] Backport fix for flto failure with neon intrinsics. From: Ramana Radhakrishnan To: gcc-patches X-Gm-Message-State: ALoCoQniJaxNSMSVr6gO6Jb1S0b2DygpbKeh86f+B2nU79fmWSquiU9fg1NKNKOpRVklrnxHCEVm 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, We hit an ICE using lto with neon intrinsics that could be traced back to an invalid call to convert during expand with LTO . Fixed by backporting Richi's fix from mainline - checking he had no objections to this on IRC , tested cross on arm-linux-gnueabi with qemu for no regressions. Applied to the FSF 4.7 branch. regards, Ramana 2012-05-24 Ramana Radhakrishnan Backport from mainline 2012-03-12 Richard Guenther * config/arm/arm.c (neon_dereference_pointer): Do not call covert during RTL expansion. Index: gcc/config/arm/arm.c =================================================================== --- gcc/config/arm/arm.c (revision 187800) +++ gcc/config/arm/arm.c (working copy) @@ -20604,9 +20604,8 @@ array_type = build_array_type (elem_type, build_index_type (upper_bound)); /* Dereference EXP using that type. */ - exp = convert (build_pointer_type (array_type), exp); return fold_build2 (MEM_REF, array_type, exp, - build_int_cst (TREE_TYPE (exp), 0)); + build_int_cst (build_pointer_type (array_type), 0)); } /* Expand a Neon builtin. */