public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/autopar_devel] [Ada] Remove special case for processing null range in GNATprove
@ 2020-08-22 23:16 Giuliano Belinassi
  0 siblings, 0 replies; only message in thread
From: Giuliano Belinassi @ 2020-08-22 23:16 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:986c91949b638a2a30e8c23c672bbd58183d74ef

commit 986c91949b638a2a30e8c23c672bbd58183d74ef
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon May 4 19:14:19 2020 +0200

    [Ada] Remove special case for processing null range in GNATprove
    
    gcc/ada/
    
            * sem_res.adb (Resolve_Range): Resolve both low and high bounds
            with the range type.

Diff:
---
 gcc/ada/sem_res.adb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/gcc/ada/sem_res.adb b/gcc/ada/sem_res.adb
index 46f140932b8..5c75a3b2aab 100644
--- a/gcc/ada/sem_res.adb
+++ b/gcc/ada/sem_res.adb
@@ -10257,13 +10257,8 @@ package body Sem_Res is
    begin
       Set_Etype (N, Typ);
 
-      --  The lower bound should be in Typ. The higher bound can be in Typ's
-      --  base type if the range is null. It may still be invalid if it is
-      --  higher than the lower bound. This is checked later in the context in
-      --  which the range appears.
-
       Resolve (L, Typ);
-      Resolve (H, Base_Type (Typ));
+      Resolve (H, Typ);
 
       --  Reanalyze the lower bound after both bounds have been analyzed, so
       --  that the range is known to be static or not by now. This may trigger


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

only message in thread, other threads:[~2020-08-22 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 23:16 [gcc/devel/autopar_devel] [Ada] Remove special case for processing null range in GNATprove Giuliano Belinassi

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