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,23ade4b42d9cb5f0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-21 06:57:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Eliminating copying in Gnat Date: 21 Jan 2003 09:52:57 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3e2b7777$0$33930$bed64819@news.gradwell.net> <3e2c8625$0$33922$bed64819@news.gradwell.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1043161519 16768 128.183.235.92 (21 Jan 2003 15:05:19 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 21 Jan 2003 15:05:19 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:33295 Date: 2003-01-21T15:05:19+00:00 List-Id: porton@ex-code.com (Victor Porton) writes: > In article , > Stephen Leake writes: > > Post complete code that demonstrates this; maybe I'll have other > > suggestions. > > > >> It is in Gnat-3.14p. May be it was fixed in Gnat-3.2/3.15p? > > I don't see any relevant problems about inlining even if all > warnings are on (however it does not inline an unrelevant library > function). But Adjust is called 3 times :-( I compiled the code with GNAT 3.15a1, with -gnatwa -gnatn (all warnings, inlining enabled). Still gives three calls to Adjust. -- -- Stephe