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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d6f7b92fd11ab291 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-17 11:02:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Crosspost: Help wanted from comp.compilers References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc01 1058464929 12.234.13.56 (Thu, 17 Jul 2003 18:02:09 GMT) NNTP-Posting-Date: Thu, 17 Jul 2003 18:02:09 GMT Organization: Comcast Online Date: Thu, 17 Jul 2003 18:02:09 GMT Xref: archiver1.google.com comp.lang.ada:40416 Date: 2003-07-17T18:02:09+00:00 List-Id: > > That's an example of a case where a textually unchanged spec file > > needs to be recompiled because of a change in compiler options. > > But GNAT doesn't do it, as you yourself point out! Which is a bug in gnatmake, IMHO. > But I would expect that this happens when new options are applied to > the withing program unit, not to the withed one. So you only recompile > the things you ask for. In the example I gave, "gnatmake -gnato testgo" *should* see that the compiler switches are different and thus recompile testgo1.ads, which should cause a recompile of testgo2, though it had no changes and was not mentioned on the command line, as well as testgo.