diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-08-02 09:53:29 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-08-02 09:53:29 +0200 |
commit | b0186f718a778b98e1c77a8279a10d79e2d83b8d (patch) | |
tree | 3e21c7b70b04eee27ee374a0f5c03b3d7ce795b3 /gcc/ada/sinfo.ads | |
parent | 767bb4e896d51ddb4aa6b44663f52f8be9d0f052 (diff) | |
download | gcc-b0186f718a778b98e1c77a8279a10d79e2d83b8d.zip gcc-b0186f718a778b98e1c77a8279a10d79e2d83b8d.tar.gz gcc-b0186f718a778b98e1c77a8279a10d79e2d83b8d.tar.bz2 |
[multiple changes]
2011-08-02 Robert Dewar <dewar@adacore.com>
* exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
expression to expression function.
2011-08-02 Ed Schonberg <schonberg@adacore.com>
* sem_ch4.adb: transform simple Ada2012 membership into equality only
if types are compatible.
2011-08-02 Yannick Moy <moy@adacore.com>
* sem_res.adb (Matching_Static_Array_Bounds): new function which
returns True if its argument array types have same dimension and same
static bounds at each index.
(Resolve_Actuals): issue an error in formal mode on actuals passed as
OUT or IN OUT paramaters which are not view conversions in SPARK.
(Resolve_Arithmetic_Op): issue an error in formal mode on
multiplication or division with operands of fixed point types which are
not qualified or explicitly converted.
(Resolve_Comparison_Op): issue an error in formal mode on comparisons of
Boolean or array type (except String) operands.
(Resolve_Equality_Op): issue an error in formal mode on equality
operators for array types other than String with non-matching static
bounds.
(Resolve_Logical_Op): issue an error in formal mode on logical operators
for array types with non-matching static bounds. Factorize the code in
Matching_Static_Array_Bounds.
(Resolve_Qualified_Expression): issue an error in formal mode on
qualified expressions for array types with non-matching static bounds.
(Resolve_Type_Conversion): issue an error in formal mode on type
conversion for array types with non-matching static bounds
From-SVN: r177089
Diffstat (limited to 'gcc/ada/sinfo.ads')
-rw-r--r-- | gcc/ada/sinfo.ads | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads index fb8f203..a4ccd62e 100644 --- a/gcc/ada/sinfo.ads +++ b/gcc/ada/sinfo.ads @@ -4591,17 +4591,17 @@ package Sinfo is -- Has_Relative_Deadline_Pragma (Flag9-Sem) -- Has_Pragma_CPU (Flag14-Sem) - ------------------------------ - -- Parameterized Expression -- - ------------------------------ + ------------------------- + -- Expression Function -- + ------------------------- -- This is an Ada 2012 extension, we put it here for now, to be labeled -- and put in its proper section when we know exactly where that is! - -- PARAMETERIZED_EXPRESSION ::= + -- EXPRESSION_FUNCTION ::= -- FUNCTION SPECIFICATION IS (EXPRESSION); - -- N_Parameterized_Expression + -- N_Expression_Function -- Sloc points to FUNCTION -- Specification (Node1) -- Expression (Node3) @@ -7591,6 +7591,7 @@ package Sinfo is N_Component_Declaration, N_Entry_Declaration, + N_Expression_Function, N_Formal_Object_Declaration, N_Formal_Type_Declaration, N_Full_Type_Declaration, @@ -7598,7 +7599,6 @@ package Sinfo is N_Iterator_Specification, N_Loop_Parameter_Specification, N_Object_Declaration, - N_Parameterized_Expression, N_Protected_Type_Declaration, N_Private_Extension_Declaration, N_Private_Type_Declaration, @@ -10818,7 +10818,7 @@ package Sinfo is 4 => True, -- Handled_Statement_Sequence (Node4) 5 => False), -- Corresponding_Spec (Node5-Sem) - N_Parameterized_Expression => + N_Expression_Function => (1 => True, -- Specification (Node1) 2 => False, -- unused 3 => True, -- Expression (Node3) @@ -12317,8 +12317,18 @@ package Sinfo is pragma Inline (Set_Withed_Body); pragma Inline (Set_Zero_Cost_Handling); + -------------- + -- Synonyms -- + -------------- + + -- These synonyms are to aid in transition, they should eventually be + -- removed when all remaining references to the obsolete name are gone. + N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement; -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients -- should refer to N_Simple_Return_Statement. + N_Parameterized_Expression : constant Node_Kind := N_Expression_Function; + -- Old name for expression functions (used during Ada 2012 transition) + end Sinfo; |