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: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: STM32F4 GNAT Run Time System - roadmap Date: Mon, 15 Jun 2015 20:03:03 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="2c7d8f71a176d2eaa78ec9fbd86e1d4a"; logging-data="10766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ju2TpEgc+sRHTbdHC4qTy0VErK+9SBMs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:+N+/uZcrtckHVjQSmlGwRSRl6Fo= sha1:75B67SMrWC3s9PcYBzq7YRff7qw= Xref: number.nntp.giganews.com comp.lang.ada:193639 Date: 2015-06-15T20:03:03+01:00 List-Id: Simon Wright writes: > It would be very nice to be able to use the generalized container > iterators of Ada 2012 (generalized array iterators are already OK). > > They require finalization: I've implemented finalization and generalized > iteration over Bounded_Vectors in the 'finalization' branch at [2]. > > Unfortunately, adding finalization to a restricted runtime triggers bugs > in GCC. > > I've raised two GCC PRs; "gnatbind generates invalid code when > finalization is enabled in restricted runtime"[3], and "Front-end error > if exception propagation disabled"[4]. > > ===================================================================== > [0] http://uk.farnell.com/stm32-mcu-nucleo-board-flexible-prototyping > [1] https://launchpad.net/gcc-arm-embedded > [2] > https://sourceforge.net/p/stm32f4-gnat-rts/code/ci/finalization/tree/ > [3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66205 > [4] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66242 The patch for [4] was reasonably-well received, but AdaCore want to take it rather further than I did. Only just posted the patch for [3]. So I don't think I'll be able to support generalized container iterators for a while yet :-)