[PATCH] PR ada/66205 gnatbind generates invalid code when finalization is enabled in restricted runtime

Simon Wright simon@pushface.org
Thu Nov 12 08:56:00 GMT 2015

On 11 Nov 2015, at 19:43, Simon Wright <simon@pushface.org> wrote:

> This situation arises, for example, with an embedded RTS that incorporates the
> Ada 2012 generalized container iterators.

I should add, this PR is the “other half” of PR ada/66242, which is fixed in GCC 6; so 
please can it be reviewed?

I didn’t make it plain that the comment I’ve put in the first hunk,

     --  For restricted run-time libraries (ZFP and Ravenscar) tasks
     --  are non-terminating, so we do not want finalization.

is lifted from the unpatched code at line 480, where it relates to the use of 
Configurable_Run_Time_On_Target for this purpose.

More information about the Gcc-patches mailing list