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!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT GPL is not shareware Date: Fri, 30 Jan 2015 18:49:15 +0000 Organization: A noiseless patient Spider Message-ID: References: <0Kgqw.953330$_k.685364@fx16.iad> <199c826a-923e-497f-a8e2-9e732c8a5665@googlegroups.com> <87bnmetex4.fsf@ludovic-brenta.org> <4ae7f0d5-d681-4be9-95bc-b5e789b3ad40@googlegroups.com> <87tx06rve6.fsf@ludovic-brenta.org> <87lhlirpk0.fsf@ludovic-brenta.org> <724c149f-0396-42a4-8594-bdbf21cce0d9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="8cd79d7ffa75567f93d907bdfb272368"; logging-data="5445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aVzmK5bSDyQAiDxp0tyO04ZtjhC5vJEY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:nP/GMTVp6JT76E5rB0F3YOwXHhA= sha1:3MPeAlEjvEt1MfOczXMVhBQ/S5k= Xref: news.eternal-september.org comp.lang.ada:24820 Date: 2015-01-30T18:49:15+00:00 List-Id: Jeffrey Carter writes: > On 01/30/2015 10:34 AM, Simon Wright wrote: >> >> I don't believe there are any language-defined units that GNAT >> doesn't implement as Ada source in the RTS? so it's the licensing >> terms on the RTS you actually build against that matters? > > I somehow doubt that Ada.Containers.Hashed_Maps is part of the > RTL. It's a generic pkg that exists only as source. If that source > lacks the exception, and you "with" it, then your code must be GPL, > regardless of the RTL the compiler links in. In GNAT, an RTS is a directory containing adainclude/ (all the RTS source) and adalib/ (all the corresponding .ali files, and binary libraries: either static or dynamic (perhaps both)). Ada.Containers.Hashed_Maps is in files a-cohama.ad[bs], and the version here in the GNAT GPL library has had the run time exception removed; whereas the one in the FSF GCC library still has it. I see no reason in principle why one shouldn't compile the FSF version with the GPL compiler. A lot of work for no benefit. I can't at the moment include Ada.Containers.* in my STM32F4 RTS, because I don't support memory allocation, and AdaCore don't include any Containers in their Ravenscar RTSs for the same board, and I only have 192K of RAM to play with! but if I did, I'd use the FSF version.