aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_dist.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-18 13:04:34 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-18 13:04:34 +0200
commit4b03d946237dd6a6953dd1337043cd9eb8e7fbcb (patch)
tree1386817c0243f4f562148895d810773bea01a48e /gcc/ada/sem_dist.adb
parent4ac2bbbd057159e44cbe8d035eb0b6fc536bc40c (diff)
downloadgcc-4b03d946237dd6a6953dd1337043cd9eb8e7fbcb.zip
gcc-4b03d946237dd6a6953dd1337043cd9eb8e7fbcb.tar.gz
gcc-4b03d946237dd6a6953dd1337043cd9eb8e7fbcb.tar.bz2
[multiple changes]
2014-07-18 Robert Dewar <dewar@adacore.com> * exp_ch7.adb: Minor reformatting. 2014-07-18 Claire Dross <dross@adacore.com> * sem_aux.ads (Get_Binary_Nkind): New function that returns the Node_Kind value of an entity defining a binary operator. (Get_Unary_Nkind): New function that returns the Node_Kind value of an entity defining a unary operator. 2014-07-18 Pascal Obry <obry@adacore.com> * sysdep.c: comment update. * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of platforms where it is known to be supported. 2014-07-18 Thomas Quinot <quinot@adacore.com> * sem_dist.adb (Process_Remote_AST_Declaration): Need to set Fat_Type's Ekind in order to be able to use its Corresponding_Remote_Type attribute. From-SVN: r212815
Diffstat (limited to 'gcc/ada/sem_dist.adb')
-rw-r--r--gcc/ada/sem_dist.adb9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ada/sem_dist.adb b/gcc/ada/sem_dist.adb
index f3d3e33..5bb273b 100644
--- a/gcc/ada/sem_dist.adb
+++ b/gcc/ada/sem_dist.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2012, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2014, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -647,7 +647,14 @@ package body Sem_Dist is
New_Occurrence_Of (RACW_Type, Loc)))))));
Set_Equivalent_Type (User_Type, Fat_Type);
+
+ -- Set Fat_Type's Etype early so that we can use its
+ -- Corresponding_Remote_Type attribute, whose presence indicates that
+ -- this is the record type used to implement a RAS.
+
+ Set_Ekind (Fat_Type, E_Record_Type);
Set_Corresponding_Remote_Type (Fat_Type, User_Type);
+
Insert_After_And_Analyze (Subpkg_Body, Fat_Type_Decl);
-- The reason we suppress the initialization procedure is that we know