From patchwork Fri May 9 14:09:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 347428 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 6DC321400B2 for ; Sat, 10 May 2014 00:09:53 +1000 (EST) 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:message-id:date :to:mime-version; q=dns; s=default; b=yeSZBAJFfZ05jcI2lDrXCXNA3P ZROcuHabfEjHt7RzPIf0r+d/Gbk4tjtJN5EHHdtGiuKXiG3GNOMrs7DNvsxnXhEL yUxgdpjAN7J4yKL0PjrDzHxolgKPp9m23qFEjz39N+Gs50f0xCERcm9kb6Q7rH67 yvubobgxI2CvUalEw= 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:message-id:date :to:mime-version; s=default; bh=3pVoipwFJDz95aIbtb6FJ7RsFf8=; b= McET5Qpl5G1E3mVn66sojrfluwUCkeZRAhRZPAlcTtniFhZPzqC5mJqsrlUy0GSE GFQsYt9Ls4QAwwpDeBkyQqoMw+K9hwsjmh1X4REdkLUWVT4Y8pC0dLN7zPQj30h0 FDPZQKZMTmGlhEsXmVK7XNMAC3XR+5ayXv0+W1af/N8= Received: (qmail 6180 invoked by alias); 9 May 2014 14:09:46 -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 6159 invoked by uid 89); 9 May 2014 14:09:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: qmta07.emeryville.ca.mail.comcast.net Received: from qmta07.emeryville.ca.mail.comcast.net (HELO qmta07.emeryville.ca.mail.comcast.net) (76.96.30.64) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 May 2014 14:09:42 +0000 Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta07.emeryville.ca.mail.comcast.net with comcast id zpko1n0020b6N64A7q9gGt; Fri, 09 May 2014 14:09:40 +0000 Received: from [IPv6:2001:558:6045:a4:7993:2ff5:6ac7:779d] ([IPv6:2001:558:6045:a4:7993:2ff5:6ac7:779d]) by omta03.emeryville.ca.mail.comcast.net with comcast id zq9f1n0082t6eyq8Pq9fFj; Fri, 09 May 2014 14:09:39 +0000 From: Mike Stump Subject: fix fortran 0 lengthed arrays Message-Id: <5D81FE4F-A649-4045-BFBB-2C24D7796F8D@comcast.net> Date: Fri, 9 May 2014 07:09:36 -0700 To: gcc-patches Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-IsSubscribed: yes This fixes a small bug in the conversion of the fortran front-end conversion to wide-int. PR fortran/61109 * trans-array.c (gfc_conv_array_initializer): Fix wide-int conversion bug. Index: trans-array.c =================================================================== --- trans-array.c (revision 210276) +++ trans-array.c (working copy) @@ -5405,7 +5405,6 @@ gfc_conv_array_initializer (tree type, g gfc_conv_structure (&se, expr, 1); wtmp = wi::to_offset (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) + 1; - gcc_assert (wtmp != 0); /* This will probably eat buckets of memory for large arrays. */ while (wtmp != 0) {