diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-11-12 12:52:59 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-11-12 12:52:59 +0100 |
commit | 549cc9c2bcb93b5424c9a0967016d4e51e587311 (patch) | |
tree | e3316f28c5129d8661e41c313965dd0c973deda3 /gcc/ada/sinfo.ads | |
parent | b3083540f530b6e28e57756e23c98670f69df4af (diff) | |
download | gcc-549cc9c2bcb93b5424c9a0967016d4e51e587311.zip gcc-549cc9c2bcb93b5424c9a0967016d4e51e587311.tar.gz gcc-549cc9c2bcb93b5424c9a0967016d4e51e587311.tar.bz2 |
[multiple changes]
2015-11-12 Ed Schonberg <schonberg@adacore.com>
* sem_ch8.adb (Find_Selected_Component): In a synchronized
body, a reference to an operation of an object of the same
synchronized type was always interpreted as a reference to the
current instance. This is not always the case, as the prefix of
the reference may designate an object of the same type declared
in the enclosing context prior to the body.
2015-11-12 Arnaud Charlet <charlet@adacore.com>
* impunit.ads, impunit.adb (Get_Kind_Of_File): New. Cleaned up
implementation from previous Get_Kind_Of_Unit.
(Get_Kind_Of_Unit): Reimplemented using Get_Kind_Of_File.
* debug.adb: Remove d.4 switch, no longer used.
* opt.ads: Update doc on Debugger_Level.
* gnat1drv.adb: Code clean ups.
* sinput.ads: minor fix in comment
2015-11-12 Bob Duff <duff@adacore.com>
* sinfo.adb, sinfo.ads, sem_ch6.adb, atree.ads: Add
Was_Expression_Function flag, which is set in sem_ch6.adb when
converting an Expression_Function into a Subprogram_Body.
2015-11-12 Pascal Obry <obry@adacore.com>
* usage.adb: Update overflow checking documentation.
From-SVN: r230243
Diffstat (limited to 'gcc/ada/sinfo.ads')
-rw-r--r-- | gcc/ada/sinfo.ads | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads index ab76d2c..4b18de9 100644 --- a/gcc/ada/sinfo.ads +++ b/gcc/ada/sinfo.ads @@ -2220,6 +2220,14 @@ package Sinfo is -- on exit from the scope of the use_type_clause, in particular in the -- case of Use_All_Type, when those operations several scopes. + -- Was_Expression_Function (Flag18-Sem) + -- Present in N_Subprogram_Body. True if the original source had an + -- N_Expression_Function, which was converted to the N_Subprogram_Body + -- by Analyze_Expression_Function. This is needed by ASIS to correctly + -- recreate the expression function (for the instance body) when the + -- completion of a generic function declaration is an expression + -- function. + -- Was_Originally_Stub (Flag13-Sem) -- This flag is set in the node for a proper body that replaces stub. -- During the analysis procedure, stubs in some situations get rewritten @@ -5212,6 +5220,7 @@ package Sinfo is -- Is_Task_Master (Flag5-Sem) -- Was_Originally_Stub (Flag13-Sem) -- Has_Relative_Deadline_Pragma (Flag9-Sem) + -- Was_Expression_Function (Flag18-Sem) ------------------------- -- Expression Function -- @@ -9795,6 +9804,9 @@ package Sinfo is function Used_Operations (N : Node_Id) return Elist_Id; -- Elist5 + function Was_Expression_Function + (N : Node_Id) return Boolean; -- Flag18 + function Was_Originally_Stub (N : Node_Id) return Boolean; -- Flag13 @@ -10830,6 +10842,9 @@ package Sinfo is procedure Set_Used_Operations (N : Node_Id; Val : Elist_Id); -- Elist5 + procedure Set_Was_Expression_Function + (N : Node_Id; Val : Boolean := True); -- Flag18 + procedure Set_Was_Originally_Stub (N : Node_Id; Val : Boolean := True); -- Flag13 @@ -12938,6 +12953,7 @@ package Sinfo is pragma Inline (Variants); pragma Inline (Visible_Declarations); pragma Inline (Used_Operations); + pragma Inline (Was_Expression_Function); pragma Inline (Was_Originally_Stub); pragma Inline (Withed_Body); @@ -13277,6 +13293,7 @@ package Sinfo is pragma Inline (Set_Variant_Part); pragma Inline (Set_Variants); pragma Inline (Set_Visible_Declarations); + pragma Inline (Set_Was_Expression_Function); pragma Inline (Set_Was_Originally_Stub); pragma Inline (Set_Withed_Body); |