aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_mech.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2013-04-25 10:35:16 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2013-04-25 10:35:16 +0200
commit9f6aaa5cc7f2ae57aa27ea8ddc8b8a3b1d0e0a3c (patch)
tree875bece5d69b206fb74a8bb9c08d7d0a7c4f9913 /gcc/ada/sem_mech.adb
parent41c34e94ff45983dbb12e1ee76290e3343bf9e9a (diff)
downloadgcc-9f6aaa5cc7f2ae57aa27ea8ddc8b8a3b1d0e0a3c.zip
gcc-9f6aaa5cc7f2ae57aa27ea8ddc8b8a3b1d0e0a3c.tar.gz
gcc-9f6aaa5cc7f2ae57aa27ea8ddc8b8a3b1d0e0a3c.tar.bz2
[multiple changes]
2013-04-25 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed). * s-tarest.adb: Minor reformatting. 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com> * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant tables. * einfo.adb: Remove with and use clause for Aspects. (Is_Ghost_Function): Removed. (Is_Ghost_Entity): New routine. (Is_Ghost_Subprogram): New routine. * einfo.ads: Remove synthesized attribute Is_Ghost_Function along with its uses in entities. Add synthesized attributes Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related entities. (Is_Ghost_Function): Removed. (Is_Ghost_Entity): New routine. (Is_Ghost_Subprogram): New routine. * par-prag.adb: Remove pragma Ghost from the processing machinery. * repinfo.adb (List_Mechanisms): Add a value for convention Ghost. * sem_attr.adb (Analyze_Access_Attribute): Update the check for ghost subprograms. * sem_ch4.adb (Analyze_Call): Update the check for calls to ghost subprograms. (Check_Ghost_Function_Call): Removed. (Check_Ghost_Subprogram_Call): New routine. * sem_ch6.adb (Check_Convention): Rewritten. (Check_Overriding_Indicator): Remove the check for overriding ghost functions. (Convention_Of): New routine. * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost generic actual subprograms. * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost. * sem_prag.adb: Remove the value for pragma Ghost from table Sig_Flags. (Analyze_Pragma): Remove the processing for pragma Ghost. (Process_Convention): Emit an error when a ghost subprogram attempts to override. (Set_Convention_From_Pragma): Emit an error when a ghost subprogram attempts to override. * sinfo.ads: Clarify the usage of field Label_Construct. * snames.adb-tmpl (Get_Convention_Id): Add an entry for predefined name Ghost. (Get_Convention_Name): Add an entry for convention Ghost. * snames.ads-tmpl: Move predefined name Ghost to the sublist denoting conventions. Add convention id Ghost. Remove pragma id Ghost. 2013-04-25 Ed Schonberg <schonberg@adacore.com> * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child units if within a generic hierarchy. From-SVN: r198275
Diffstat (limited to 'gcc/ada/sem_mech.adb')
-rw-r--r--gcc/ada/sem_mech.adb7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/sem_mech.adb b/gcc/ada/sem_mech.adb
index 924b58c..f71a477b 100644
--- a/gcc/ada/sem_mech.adb
+++ b/gcc/ada/sem_mech.adb
@@ -300,12 +300,14 @@ package body Sem_Mech is
-- Ada --
---------
- -- Note: all RM defined conventions are treated the same
- -- from the point of view of parameter passing mechanism
+ -- Note: all RM defined conventions are treated the same from
+ -- the point of view of parameter passing mechanism. Convention
+ -- Ghost has the same dynamic semantics as convention Ada.
when Convention_Ada |
Convention_Intrinsic |
Convention_Entry |
+ Convention_Ghost |
Convention_Protected |
Convention_Stubbed =>
@@ -486,7 +488,6 @@ package body Sem_Mech is
else
Set_Mechanism (Formal, By_Reference);
end if;
-
end case;
end if;