From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23160 invoked by alias); 28 Jun 2013 15:40:44 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 23149 invoked by uid 89); 28 Jun 2013 15:40:43 -0000 X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from mail.allinea.com (HELO mail.allinea.com) (94.125.131.200) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 28 Jun 2013 15:40:42 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.allinea.com (Postfix) with ESMTP id C8D8086C002 for ; Fri, 28 Jun 2013 16:40:39 +0100 (BST) Received: from mail.allinea.com ([127.0.0.1]) by localhost (mail.allinea.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CyWGg3fui+Qm for ; Fri, 28 Jun 2013 16:40:39 +0100 (BST) Received: from [192.168.0.7] (cpc16-sotn11-2-0-cust109.15-1.cable.virginmedia.com [82.10.182.110]) (Authenticated sender: cjanuary) by mail.allinea.com (Postfix) with ESMTPSA id 6F7ED86C001 for ; Fri, 28 Jun 2013 16:40:39 +0100 (BST) Message-ID: <1372434039.2950.12.camel@gumtree> Subject: Re: Variable Length Arrays (VLA) proposal From: Chris January To: gdb@sourceware.org Date: Fri, 28 Jun 2013 15:40:00 -0000 In-Reply-To: <0377C58828D86C4588AEEC42FC3B85A7176288F9@IRSMSX105.ger.corp.intel.com> References: <0377C58828D86C4588AEEC42FC3B85A7176288F9@IRSMSX105.ger.corp.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-SW-Source: 2013-06/txt/msg00074.txt.bz2 Hello Sanimir, On Fri, 2013-06-28 at 13:01 +0000, Agovic, Sanimir wrote: > (1) > Resolving check_typedef: > (2) > Type normalization: > (3) > Split struct type: Just to add another possibility, we implemented VLA for Fortran by wrapping read_var_value and then adding a call to f_fixup_value which 'fixed up' the type of the variable (filled in the array bounds, etc.) by modifying the original type. (It also auto-dereferences pointers). Regards, Chris January - VP Engineering - Allinea Software Ltd.