From patchwork Sat Nov 21 20:22:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Dominique_d=27Humi=C3=A8res?= X-Patchwork-Id: 547238 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 01AD11401F0 for ; Sun, 22 Nov 2015 07:22:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Kh4c2fSY; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; q=dns; s=default; b=w7EXmceg+vJifXGxkMFNMMl H/82b4LuTZ5PfVmoN/cedH1OU/OjlK9eZkTvCVf2SFpLUf6mVzb+yH4VKXd/UhxP 6kuZbD8mVgR9eJHpqkG+0IkLGIMW0C30CnAjxOcXAcbX7qIna27OiPt+BybQK9Cy kKJs3uUt9xowrdFc0XGQ= 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:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; s=default; bh=sr4Bh8awtqaLn4GSyTBI+gAWXJ4=; b= Kh4c2fSYebd9M1ZbECvJZuH3gHy59E/8qo6q+zfjFNPrVIq1kvQZvYzj2HhRHEOm IuvKoa+fHPXyFx8J/pFcmu8ZmcgVC8dg+SM4NUhkZsvCO1A+GJdfIIRtksrVnTml 84w5Jdrh+HiUjfJw4yAYAM6S+diFiuOxGKWypQAA7jc= Received: (qmail 10632 invoked by alias); 21 Nov 2015 20:22:48 -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 10609 invoked by uid 89); 21 Nov 2015 20:22:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_20, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Nov 2015 20:22:46 +0000 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id tALKMh3F098954 ; Sat, 21 Nov 2015 21:22:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 2632A156; Sat, 21 Nov 2015 21:22:43 +0100 (CET) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y_KxKqZlhudO; Sat, 21 Nov 2015 21:22:43 +0100 (CET) Received: from [192.168.1.14] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id E707F155; Sat, 21 Nov 2015 21:22:42 +0100 (CET) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Subject: Re: [PATCH] (Partial) Implementation of simplificaiton of CSHIFT Date: Sat, 21 Nov 2015 21:22:40 +0100 Message-Id: Cc: fortran@gcc.gnu.org, gcc-patches To: Steve Kargl Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) ‘dm’ is actually not used, the building problem is fixed by the patch (I did not rearrange the nested ‘if’s) Dominique --- ../_clean/gcc/fortran/simplify.c 2015-11-21 20:59:57.000000000 +0100 +++ gcc/fortran/simplify.c 2015-11-21 21:06:30.000000000 +0100 @@ -1792,7 +1792,6 @@ gfc_expr * gfc_simplify_cshift (gfc_expr *array, gfc_expr *shift, gfc_expr *dim) { gfc_expr *a, *result; - int dm; /* DIM is only useful for rank > 1, but deal with it here as one can set DIM = 1 for rank = 1. */ @@ -1800,10 +1799,7 @@ gfc_simplify_cshift (gfc_expr *array, gf { if (!gfc_is_constant_expr (dim)) return NULL; - dm = mpz_get_si (dim->value.integer); } - else - dm = 1; /* Copy array into 'a', simplify it, and then test for a constant array. An unexpected expr_type causes an ICE. */