[Ada] Combine system.ads files - arm and aarch64 qnx
authorDoug Rupp <rupp@adacore.com>
Mon, 9 May 2022 18:37:17 +0000 (11:37 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 1 Jun 2022 08:43:20 +0000 (08:43 +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-qnx-arm.ads (Memory_Size): Compute based on
Word_Size.

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

index 5f4b90e..749384f 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