From 813f0651e7c2a506903d0dfd0daff8895c339800 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Wed, 10 May 2017 07:31:21 -0700
Subject: [PATCH] Ada/x32: PR ada/80626: Correct Memory_Size
X32 uses 64 as word size instead of 32. This must not affect the
Address type definition which is based on Memory_Size.
PR ada/80626
* system-linux-x86.ads (Memory_Size): Use Long_Integer'Size
instead of Word_Size.
---
gcc/ada/system-linux-x86.ads | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -70,7 +70,7 @@ package System is
Storage_Unit : constant := 8;
Word_Size : constant := Standard'Word_Size;
- Memory_Size : constant := 2 ** Word_Size;
+ Memory_Size : constant := 2 ** Long_Integer'Size;
-- Address comparison
--
2.9.3