-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation failures with Ravenscar before GCC 13 #18
Comments
The problem can be made to go away with this patch:
which is. a. shame. Thinking about it, it’s not a surprise: the natural way to implement |
In
(or
In GCC 12, the compiler called these procedures with Later |
This is a cut-down reproducer:
Compiling with the native compiler results in
|
See GCC PR 108801. |
Another problem:
(snipped a long list of source files). This was with GCC 12.2.0 (arm-eabi) and Ada.Containers.Bounded_Vectors from Cortex GNAT RTS. These containers were derived in 2015 from those provided with GCC 4.9.1; the differences were the removal of tampering checks and the need for finalization (not available in Cortex GNAT RTS). The same doesn’t happen with Minimal Containers. |
It turns out that FSF GCC versions between 10 and 12 and GNAT CE versions between 2020 and 2021 won’t compile
lib/ravenscar/coldframe-events-standard.ads
in the presence of the restrictionNo_Implicit_Heap_Allocations
, which is part of the Ravenscar profile.FSF GCC 13 (currently still under development; the 20230129 snapshot) appears not to have this problem.
The text was updated successfully, but these errors were encountered: