]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Remove workaround for RM_Size being unable to represent unknown size
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 6 Dec 2024 08:33:28 +0000 (09:33 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 6 Jan 2025 09:14:45 +0000 (10:14 +0100)
commit411008f29f7ef925d358eade315955c7737d90c1
tree2fba76d3212ca5eb71c469621bc50d0772e79e8c
parent804e9d55d9e54cffd32d8dd065bf3c785b1edbf4
ada: Remove workaround for RM_Size being unable to represent unknown size

When validating instances of Ada.Unchecked_Conversion, we explicitly detected
null arrays, because a size of 0 was used to indicate both an unknown size and
an actual size of 0. This limitation has been lifted, so we can remove
detection of null arrays.

Code cleanup; behavior is unaffected.

gcc/ada/ChangeLog:

* sem_ch13.adb (Validate_Unchecked_Conversions): Remove detection of
null arrays; remove tests for sizes being present, which are redundant
after calling Known_Static_RM_Size.
gcc/ada/sem_ch13.adb