diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-05-28 07:42:53 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2019-05-28 07:42:53 +0000 |
commit | 3e86c778cb135d6efa1bb4d97cf84c83ca867fb8 (patch) | |
tree | 25376ebcfe9eb27062a0a1e6d26b46f076575299 /gcc/ada | |
parent | f65f371bcff00263f9e870d546b580caebd953b3 (diff) | |
download | gcc-3e86c778cb135d6efa1bb4d97cf84c83ca867fb8.zip gcc-3e86c778cb135d6efa1bb4d97cf84c83ca867fb8.tar.gz gcc-3e86c778cb135d6efa1bb4d97cf84c83ca867fb8.tar.bz2 |
decl.c (gnat_to_gnu_entity): Remove obsolete test on Is_For_Access_Subtype.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Remove
obsolete test on Is_For_Access_Subtype.
From-SVN: r271683
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/decl.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 8c22c32..145246d 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,10 @@ 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> + * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Remove + obsolete test on Is_For_Access_Subtype. + +2019-05-28 Eric Botcazou <ebotcazou@adacore.com> + * gcc-interface/decl.c (components_to_record): Set a name on the type created for the REP part, if any. * gcc-interface/utils.c (finish_record_type): Only take the maximum diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index dc23743..da8fbe6 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)) { |