From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62907 invoked by alias); 7 Aug 2016 20:12:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 62893 invoked by uid 89); 7 Aug 2016 20:12:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:752, bf, bg, longest X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 07 Aug 2016 20:12:30 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ACD344E320; Sun, 7 Aug 2016 20:12:28 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-102.ams2.redhat.com [10.36.116.102]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u77KCP0b009614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 7 Aug 2016 16:12:27 -0400 Date: Sun, 07 Aug 2016 20:12:00 -0000 From: Jan Kratochvil To: "Weinmann, Christoph T" Cc: "gdb-patches@sourceware.org" , "Heckel, Bernhard" Subject: Re: [ping] [PATCH v2 0/6] fortran: multi-dimensional subarrays with strides Message-ID: <20160807201224.GA10481@host1.jankratochvil.net> References: <1E04C56C2A492B449743D653DD4A15BC3BC1AEB0@IRSMSX102.ger.corp.intel.com> <20160630214736.GA6476@host1.jankratochvil.net> <1E04C56C2A492B449743D653DD4A15BC3BC4C94C@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: <1E04C56C2A492B449743D653DD4A15BC3BC4C94C@IRSMSX102.ger.corp.intel.com> User-Agent: Mutt/1.6.2 (2016-07-01) X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00099.txt.bz2 Hello Christoph, 0001-fortran-allow-multi-dimensional-subarrays.patch contains: + elt_size = TYPE_LENGTH (elt_type); + elt_offs = longest_to_int (lowbound - ary_low_bound); + elt_stride = TYPE_LENGTH (TYPE_INDEX_TYPE (array_type)); + + elt_offs *= elt_size; which now causes: valops.c:3803:11: error: variable ‘elt_stride’ set but not used [-Werror=unused-but-set-variable] LONGEST elt_stride, ary_high_bound, ary_low_bound; ^~~~~~~~~~ but other patches contained: + if (elt_stride > 0) + elt_offs *= elt_stride; [...] + else + elt_offs *= elt_size; This may explain some Fortran testcase stride failure I was seeing and bugreporting to you off-list. Jan