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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT user-specified (via Raise_Exception) warning message size limit Date: Fri, 23 Feb 2018 08:56:28 +0000 Organization: A noiseless patient Spider Message-ID: References: <789f6417-5e6f-4d5f-8abb-80246f4f405a@googlegroups.com> <5e5ce844-42a8-c2de-bf53-4acf67be7f53@bahnhof.se> <2bf467d9-dbc1-46e9-981f-a092f82e7271@googlegroups.com> <8be2e00e-3331-4e04-8a33-ebcfb6041249@googlegroups.com> <2c8cc683-abf7-43e5-8022-dc3a5e63d34c@googlegroups.com> <2dd55386-2d47-48ad-bce8-4e5717af142f@googlegroups.com> <0d193911-cf4b-405d-86d8-d98a22ca203e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="57e4943b7e60780cbbd8958b3f7a03f3"; logging-data="27793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZYTg2gBUnK4lIUo7/eddVW/efbQfPqAQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:dU6Xk2b/cEMWYaQlZVH7FtvjsP8= sha1:+gfccH99tndKmZpAr/dHA8Y1FbA= Xref: reader02.eternal-september.org comp.lang.ada:50587 Date: 2018-02-23T08:56:28+00:00 List-Id: briot.emmanuel@gmail.com writes: > As I am sure Simon already knows, but might be useful for others (it > doesn't solve the problem highlighted by Simon, though): > > You can actually use gprbuild to recompile locally the bodies of > runtime files. You just have to put them in your source directories, > and change the project file to make sure the file is compiled with > -gnatg. I have done that quite often for System.Memory > > project Default is > package Compiler is > for Switches ("s-memory.adb") use ("-gnatg"); > end Compiler; > end Default; I don't think I've ever done this - failing to do it would explain why, even after precompiling s-stratt.adb with -gnatpg (which gnatmake -a did), gprbuild with the default .gpr wouldn't build. > This trick however doesn't work for specs, since it doesn't recompile > all runtime units that depend on them unless they are part of the > project. You might get away with creating a "runtime.gpr" project > that uses for source dirs the runtime location, and forces the -gnatg > switch. I suppose other runtime units would need recompiling if any part of this body was inlined.