]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Combine system.ads files - arm and aarch64 linux
authorDoug Rupp <rupp@adacore.com>
Tue, 10 May 2022 22:03:58 +0000 (15:03 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 2 Jun 2022 09:06:38 +0000 (09:06 +0000)
Systemitize Word_Size and Memory_Size declarations rather than hard code
with numerical values or OS specific Long_Integer size.

gcc/ada/

* libgnat/system-linux-arm.ads (Memory_Size): Compute based on
Word_Size.

gcc/ada/libgnat/system-linux-arm.ads

index 6f2cb247fec4b9484258d42fc7d22c61e297086b..996d40727fc1be0258d36923db8ff068b57b387d 100644 (file)
@@ -70,7 +70,7 @@ package System is
 
    Storage_Unit : constant := 8;
    Word_Size    : constant := Standard'Word_Size;
-   Memory_Size  : constant := 2 ** Long_Integer'Size;
+   Memory_Size  : constant := 2 ** Word_Size;
 
    --  Address comparison