]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Sort cross-reference table using heap and not stack
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 5 Nov 2025 19:14:33 +0000 (20:14 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 21 Nov 2025 08:29:37 +0000 (09:29 +0100)
commit57d3933a8705bcea91d8a7189d7d5d5edce14524
tree7bb8d161ffb3f9520ba959d29fd1f86c1a3dae6d
parentc9aeb782c7899c616ed122a68119b12c04e3c82c
ada: Sort cross-reference table using heap and not stack

Cross-references are used by GNATprove for code that is not in SPARK. They are
sorted using an auxiliary array. This array should be allocated on the heap and
not on stack, because it can be arbitrarily large, especially for
auto-generated code.

gcc/ada/ChangeLog:

* lib-xref.adb (Output_References): Put local array object on the heap.
gcc/ada/lib-xref.adb