From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10374 invoked by alias); 30 Sep 2004 01:37:19 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 10362 invoked from network); 30 Sep 2004 01:37:19 -0000 Received: from unknown (HELO nile.gnat.com) (205.232.38.5) by sourceware.org with SMTP; 30 Sep 2004 01:37:19 -0000 Received: from localhost (localhost [127.0.0.1]) by nile.gnat.com (Postfix) with ESMTP id 5E3DCF2BE5; Wed, 29 Sep 2004 21:37:18 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09388-01-10; Wed, 29 Sep 2004 21:37:18 -0400 (EDT) Received: from [172.16.1.2] (sdsl-216-220-103-157.dsl.bway.net [216.220.103.157]) by nile.gnat.com (Postfix) with ESMTP id CD4F8F2BC9; Wed, 29 Sep 2004 21:37:17 -0400 (EDT) In-Reply-To: <415B45EC.7020808@bothner.com> References: <10409292256.AA05047@vlsi1.ultra.nyu.edu> <415B45EC.7020808@bothner.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <439F11C0-1281-11D9-9684-000A959A128E@gnat.com> Content-Transfer-Encoding: 7bit Cc: gcc@gcc.gnu.org, Richard Kenner From: Geert Bosch Subject: Re: Ada, treelang needs to be converted to --enable-mapped-location Date: Thu, 30 Sep 2004 08:03:00 -0000 To: Per Bothner X-Virus-Scanned: by amavisd-new at nile.gnat.com X-SW-Source: 2004-09/txt/msg01645.txt.bz2 \On Sep 29, 2004, at 19:31, Per Bothner wrote: > Richard Kenner wrote: >> So indeed I suspect the changes are tiny, but would appreciate a >> little more >> details about what needs to be done. > Excuse me for my ignorance, but this seems a very convoluted way to gather some simple information. Probably I am missing some higher level description of what information the back end needs, and why. Currently, parsing is fast. Why should we be calling an extra function for every line parsed? Basically, the Ada model is to first build an entire Ada parse tree of the Ada source and expand/lower it to a level where Ada constructs like generic instantiations and tasks have disappeared. That tree gets then lowered to GENERIC. Currently we have about a dozen places in Gigi (the GNAT to GCC tree translator) where we call a routine Sloc_to_locus, which converts an Ada source location into a location_t. I would assume that there would be a way that we can change this routine to hand the back end the new information, including column number. -Geert