public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/guojiufu/heads/guojiufu-branch)] [Ada] Use Standard.Natural on bit references to packed arrays
@ 2020-06-10 3:23 Jiu Fu Guo
0 siblings, 0 replies; only message in thread
From: Jiu Fu Guo @ 2020-06-10 3:23 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0c6eef3096edafbcc857319efff2377dd63be7cb
commit 0c6eef3096edafbcc857319efff2377dd63be7cb
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Mon Dec 16 11:18:59 2019 +0100
[Ada] Use Standard.Natural on bit references to packed arrays
2020-06-02 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* exp_pakd.adb (Expand_Packed_Bit_Reference): Change type of
reference from Universal_Integer to Standard_Natural.
Diff:
---
gcc/ada/exp_pakd.adb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/ada/exp_pakd.adb b/gcc/ada/exp_pakd.adb
index 7dcf241e247..d125db17b32 100644
--- a/gcc/ada/exp_pakd.adb
+++ b/gcc/ada/exp_pakd.adb
@@ -1520,12 +1520,12 @@ package body Exp_Pakd is
Get_Base_And_Bit_Offset (Prefix (N), Base, Offset);
Rewrite (N,
- Unchecked_Convert_To (Universal_Integer,
+ Unchecked_Convert_To (Standard_Natural,
Make_Op_Mod (Loc,
Left_Opnd => Offset,
Right_Opnd => Make_Integer_Literal (Loc, System_Storage_Unit))));
- Analyze_And_Resolve (N, Universal_Integer);
+ Analyze_And_Resolve (N, Standard_Natural);
end Expand_Packed_Bit_Reference;
------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-10 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 3:23 [gcc(refs/users/guojiufu/heads/guojiufu-branch)] [Ada] Use Standard.Natural on bit references to packed arrays Jiu Fu Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).