public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5029] [Ada] Refine type in expansion of array equality
@ 2021-11-09  9:46 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-11-09  9:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b5f17bffea261a5fdd7b9a7bd334f21d528d3cfa

commit r12-5029-gb5f17bffea261a5fdd7b9a7bd334f21d528d3cfa
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Wed Oct 27 17:32:52 2021 +0200

    [Ada] Refine type in expansion of array equality
    
    gcc/ada/
    
            * exp_ch4.adb (Handle_One_Dimension): Parameter N must be always
            positive, because it is translated into expression of 'First and
            'Last.

Diff:
---
 gcc/ada/exp_ch4.adb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb
index 26996444735..3db43dd870a 100644
--- a/gcc/ada/exp_ch4.adb
+++ b/gcc/ada/exp_ch4.adb
@@ -1637,7 +1637,7 @@ package body Exp_Ch4 is
       --  for that argument in the corresponding function formal
 
       function Handle_One_Dimension
-        (N     : Int;
+        (N     : Pos;
          Index : Node_Id) return Node_Id;
       --  This procedure returns the following code
       --
@@ -1786,7 +1786,7 @@ package body Exp_Ch4 is
       ---------------------------
 
       function Handle_One_Dimension
-        (N     : Int;
+        (N     : Pos;
          Index : Node_Id) return Node_Id
       is
          Need_Separate_Indexes : constant Boolean :=


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-09  9:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09  9:46 [gcc r12-5029] [Ada] Refine type in expansion of array equality Pierre-Marie de Rodat

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).