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.

	Back port from mainline
	PR ada/80626
	* system-linux-x86.ads (Memory_Size): Use Long_Integer'Size
	instead of Word_Size.

From-SVN: r247850
This commit is contained in:
H.J. Lu 2017-05-10 17:36:50 +00:00 committed by H.J. Lu
parent 13de5a6a04
commit 96764ede56
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
Back port from mainline
2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
PR ada/80626
* system-linux-x86.ads (Memory_Size): Use Long_Integer'Size
instead of Word_Size.
2017-05-02 Release Manager
* GCC 7.1.0 released.

View File

@ -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