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 restriction No_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.