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!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Precondition on protected entry Date: Fri, 20 Jan 2017 16:54:44 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="7fde7f2dc54183f3a5fadac0582a8264"; logging-data="19252"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xKlAQ9N9rlb7bukdEVmF6wVF5scSt8hA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:rz8q3e1dWVJA6Lxre1P8ZXrJ4oI= sha1:ndVxumhNSR7UgbtSxOBux16vrws= Xref: news.eternal-september.org comp.lang.ada:33106 Date: 2017-01-20T16:54:44+00:00 List-Id: Simon Wright writes: > Stephen Leake writes: > >> On Tuesday, October 11, 2016 at 3:29:47 PM UTC-5, Simon Wright wrote: >>> I have this (Ravenscar, STM32F4) code: >>> >> >> I modified it slightly to compile with Windows GNAT GPL 2016: > [...] >> gnatmake timer_handler.adb >> >> no errors. >> >> So this looks like a problem with the cross target only? > > Most likely pragma Profile (Ravenscar). > > Will report the bug, thanks for the check. I managed to forget this, and have just reported the problem. It turns out that the problem shows up if assertions are enabled (-gnata).