From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6458d1ee91b224ec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.68.132.73 with SMTP id os9mr289938pbb.4.1360928102763; Fri, 15 Feb 2013 03:35:02 -0800 (PST) Path: ov8ni2292pbb.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nntp.club.cc.cmu.edu!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?UTF-8?B?QmrDtnJu?= Persson Newsgroups: comp.lang.ada Subject: Re: chopping Ada source that have preprocessor symbols in them Date: Tue, 12 Feb 2013 17:04:52 +0100 Message-ID: <20130212170452.5c125ebe@hactar.xn--rombobjrn-67a.se> References: <5111a9d5$0$6567$9b4e6d93@newsspool3.arcor-online.net> <85txpnm1vp.fsf@stephe-leake.org> <5114fb61$0$6561$9b4e6d93@newsspool4.arcor-online.net> <85ehgqkxnf.fsf@stephe-leake.org> <51168e7e$0$6566$9b4e6d93@newsspool3.arcor-online.net> <51197b0d$0$9510$9b4e6d93@newsspool1.arcor-online.net> Mime-Version: 1.0 X-Trace: individual.net fbUAjI4AT4aJIMSgpto+fgLfzvUhgv0dl0SCSnX9SHQTt2564tGh3WD5WalrTbSidh Cancel-Lock: sha1:Nq6Bq2ls89W/hCli2fkgsGgCDd0= X-Newsreader: Claws Mail 3.9.0 (GTK+ 2.24.13; x86_64-redhat-linux-gnu) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: 2013-02-12T17:04:52+01:00 List-Id: Georg Bauhaus wrote: > As Bj=C3=B6rn said, the compiler should ideally be able to refer to the > original source file as usual. Now, while switch -m does have the desired > effect when chaining the three steps gnatprep && gnatchop && gnatmake, > the compiler messages will in the end refer to the intermediate file > that gnatprep will have created. I haven't tried it but according to the GNAT User's Guide, if you pass -r to both Gnatprep and Gnatchop, then compiler messages and debug information will refer to the original file. Bj=C3=B6rn Persson