diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-06-11 14:22:57 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-06-11 14:22:57 +0200 |
commit | 2c8d828a5fc1c18ef630ea45ce1ff13638d97918 (patch) | |
tree | 645544f68c75c182b632092acdfbe2feee66f73d /gcc/ada/sinfo.adb | |
parent | 4622301b0dd6b595d51be6a6b9e39b177d0abb6a (diff) | |
download | gcc-2c8d828a5fc1c18ef630ea45ce1ff13638d97918.zip gcc-2c8d828a5fc1c18ef630ea45ce1ff13638d97918.tar.gz gcc-2c8d828a5fc1c18ef630ea45ce1ff13638d97918.tar.bz2 |
[multiple changes]
2014-06-11 Yannick Moy <moy@adacore.com>
* einfo.ads: Minor typo in comment
2014-06-11 Ed Schonberg <schonberg@adacore.com>
* sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
formal private types and private type extensions, to indicate
variable in a generic unit whose uninitialized use suggest that
actual type should be fully initialized.
Needs_Initialized_Actual: removed, functionaity replaced by
the above.
* lib-xref.adb (Generate_Reference): Generate a reference for
variables of a formal type when the unit is not the main unit,
to enable appropriate warnings in an instance.
* sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
of variable in a generic unit that suggests that actual type
should be full initialized.
* sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
and do not emot warning, which now only appears in an instance.
2014-06-11 Eric Botcazou <ebotcazou@adacore.com>
* gnat_ugn.texi: Fix minor typo.
2014-06-11 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch3.adb Add with and use clause for Sem_Ch10.
(Analyze_Declarations): Code reformatting. Analyze the contract
of a subprogram body stub at the end of the declarative region.
* sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
now a variable. Do not process the body if its contract is not
available. Account for subprogram body stubs when extracting
the corresponding spec.
* sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
on usage.
* sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
New routine.
* sem_prag.adb (Analyze_Depends_In_Decl_Part):
Account for subprogram body stubs when extracting the
corresponding spec.
(Analyze_Global_In_Decl_List):
Account for subprogram body stubs when extracting the
corresponding spec.
(Analyze_Refined_Depends_In_Decl_Part):
Use Find_Related_Subprogram_Or_Body to retrieve the declaration
of the related body. Spec_Is now a variable. Account for
subprogram body stubs when extracting the corresponding spec.
(Analyze_Refined_Global_In_Decl_Part): Use
Find_Related_Subprogram_Or_Body to retrieve the declaration
of the related body. Spec_Is now a variable. Account for
subprogram body stubs when extracting the corresponding spec.
(Collect_Subprogram_Inputs_Output): Account for subprogram body
stubs when extracting the corresponding spec.
2014-06-11 Vincent Celier <celier@adacore.com>
* gnatcmd.adb (Process_Link): Do not invoke gnatlink with
-lgnarl or -lgnat.
From-SVN: r211454
Diffstat (limited to 'gcc/ada/sinfo.adb')
-rw-r--r-- | gcc/ada/sinfo.adb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gcc/ada/sinfo.adb b/gcc/ada/sinfo.adb index c1eaae5..0c1a777 100644 --- a/gcc/ada/sinfo.adb +++ b/gcc/ada/sinfo.adb @@ -2224,15 +2224,6 @@ package body Sinfo is return List2 (N); end Names; - function Needs_Initialized_Actual - (N : Node_Id) return Boolean is - begin - pragma Assert (False - or else NT (N).Nkind = N_Formal_Private_Type_Definition - or else NT (N).Nkind = N_Private_Extension_Declaration); - return Flag18 (N); - end Needs_Initialized_Actual; - function Next_Entity (N : Node_Id) return Node_Id is begin @@ -3184,6 +3175,15 @@ package body Sinfo is return List2 (N); end Visible_Declarations; + function Uninitialized_Variable + (N : Node_Id) return Node_Id is + begin + pragma Assert (False + or else NT (N).Nkind = N_Formal_Private_Type_Definition + or else NT (N).Nkind = N_Private_Extension_Declaration); + return Node3 (N); + end Uninitialized_Variable; + function Used_Operations (N : Node_Id) return Elist_Id is begin @@ -5373,15 +5373,6 @@ package body Sinfo is Set_List2_With_Parent (N, Val); end Set_Names; - procedure Set_Needs_Initialized_Actual - (N : Node_Id; Val : Boolean := True) is - begin - pragma Assert (False - or else NT (N).Nkind = N_Formal_Private_Type_Definition - or else NT (N).Nkind = N_Private_Extension_Declaration); - Set_Flag18 (N, Val); - end Set_Needs_Initialized_Actual; - procedure Set_Next_Entity (N : Node_Id; Val : Node_Id) is begin @@ -6333,6 +6324,15 @@ package body Sinfo is Set_List2_With_Parent (N, Val); end Set_Visible_Declarations; + procedure Set_Uninitialized_Variable + (N : Node_Id; Val : Node_Id) is + begin + pragma Assert (False + or else NT (N).Nkind = N_Formal_Private_Type_Definition + or else NT (N).Nkind = N_Private_Extension_Declaration); + Set_Node3 (N, Val); + end Set_Uninitialized_Variable; + procedure Set_Used_Operations (N : Node_Id; Val : Elist_Id) is begin |