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,ASCII-7-bit X-Received: by 10.68.235.173 with SMTP id un13mr622552pbc.3.1360549061907; Sun, 10 Feb 2013 18:17:41 -0800 (PST) Path: mj10ni3481pbb.1!nntp.google.com!border1.nntp.dca.giganews.com!backlog1.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!news.stw-bonn.de!fu-berlin.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 08 Feb 2013 14:19:32 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: chopping Ada source that have preprocessor symbols in them References: <5111a9d5$0$6567$9b4e6d93@newsspool3.arcor-online.net> <85txpnm1vp.fsf@stephe-leake.org> In-Reply-To: <85txpnm1vp.fsf@stephe-leake.org> X-Enigmail-Version: 1.5 Message-ID: <5114fb61$0$6561$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 08 Feb 2013 14:19:30 CET NNTP-Posting-Host: 6cfd2087.newsspool4.arcor-online.net X-Trace: DXC=6QooeKSc>EQ@>[RYkFXOIP4IUKZLh>_cHTX3j]e On 08.02.13 13:22, Stephen Leake wrote: > Georg Bauhaus writes: > >> - I call gnatprep with the original program as input and use >> the output as input to gnatchop. I loose the preprocessor >> symbols in all resulting compilation units, > > What's wrong with this option? When I want to use GNAT's file based approach, *and* also want to continue preprocessing with GNATprep or gcc in order to handle different configurations/language support/..., then I need the symbols to stay in the chopped source. After this step, I could use -gnatep or Makefile rules as necessary.