From: Eric Botcazou Date: Tue, 28 May 2019 07:42:53 +0000 (+0000) Subject: decl.c (gnat_to_gnu_entity): Remove obsolete test on Is_For_Access_Subtype. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e86c778cb135d6efa1bb4d97cf84c83ca867fb8;p=gcc.git decl.c (gnat_to_gnu_entity): Remove obsolete test on Is_For_Access_Subtype. * gcc-interface/decl.c (gnat_to_gnu_entity) : Remove obsolete test on Is_For_Access_Subtype. From-SVN: r271683 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 8c22c322a2c..145246d3295 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2019-05-28 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Remove + obsolete test on Is_For_Access_Subtype. + 2019-05-28 Eric Botcazou * gcc-interface/decl.c (components_to_record): Set a name on the type diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index dc23743b55f..da8fbe69e23 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -3373,7 +3373,6 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) Unchecked_Union (it must be an Itype), just return the type. */ if (Has_Discriminants (gnat_entity) && Stored_Constraint (gnat_entity) != No_Elist - && !Is_For_Access_Subtype (gnat_entity) && Is_Record_Type (gnat_base_type) && !Is_Unchecked_Union (gnat_base_type)) {