public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/autopar_devel] [Ada] Further cleanup in constraint checking code for allocators
@ 2020-08-22 22:53 Giuliano Belinassi
  0 siblings, 0 replies; only message in thread
From: Giuliano Belinassi @ 2020-08-22 22:53 UTC (permalink / raw)
  To: gcc-cvs

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

commit f18fc3cb0e640005f4d2529d8b307874bd751f69
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Sun May 3 23:26:11 2020 +0200

    [Ada] Further cleanup in constraint checking code for allocators
    
    2020-06-19  Eric Botcazou  <ebotcazou@adacore.com>
    
    gcc/ada/
    
            * exp_ch5.adb (Expand_N_Assignment_Statement): Do not apply
            range checks to allocators here.

Diff:
---
 gcc/ada/exp_ch5.adb | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/gcc/ada/exp_ch5.adb b/gcc/ada/exp_ch5.adb
index db2ab18afb4..a4916ef4af2 100644
--- a/gcc/ada/exp_ch5.adb
+++ b/gcc/ada/exp_ch5.adb
@@ -2448,16 +2448,6 @@ package body Exp_Ch5 is
                Apply_Length_Check (Rhs, Etype (Lhs));
             end if;
          end if;
-
-      --  Apply range check for access type case
-
-      elsif Is_Access_Type (Etype (Lhs))
-        and then Nkind (Rhs) = N_Allocator
-        and then Nkind (Expression (Rhs)) = N_Qualified_Expression
-      then
-         Analyze_And_Resolve (Expression (Rhs));
-         Apply_Range_Check
-           (Expression (Rhs), Designated_Type (Etype (Lhs)));
       end if;
 
       --  Ada 2005 (AI-231): Generate the run-time check


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 22:53 [gcc/devel/autopar_devel] [Ada] Further cleanup in constraint checking code for allocators 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).