aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sinfo.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-18 12:06:00 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-18 12:06:00 +0200
commitee4eee0a542378923db1978ac6cee9fe1dfd693e (patch)
tree8944821564e7f6c276ac0ab7ce725cb86bbac4f5 /gcc/ada/sinfo.ads
parent3b8481cb9a266deed774ae75d579b7243c3f1cc4 (diff)
downloadgcc-ee4eee0a542378923db1978ac6cee9fe1dfd693e.zip
gcc-ee4eee0a542378923db1978ac6cee9fe1dfd693e.tar.gz
gcc-ee4eee0a542378923db1978ac6cee9fe1dfd693e.tar.bz2
[multiple changes]
2014-07-18 Robert Dewar <dewar@adacore.com> * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting. 2014-07-18 Robert Dewar <dewar@adacore.com> * einfo.adb (Has_Static_Predicate): New function. (Set_Has_Static_Predicate): New procedure. * einfo.ads (Has_Static_Predicate): New flag. * sem_ch13.adb (Is_Predicate_Static): New function (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize (Add_Call): Minor change in Sloc of generated expression (Add_Predicates): Remove setting of Static_Pred, no longer used. * sem_ch4.adb (Has_Static_Predicate): Removed this function, replace by use of the entity flag Has_Static_Predicate_Aspect. * sem_eval.adb (Eval_Static_Predicate_Check): Check real case and issue warning that predicate is not checked for now. * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in spec. * sem_util.adb (Check_Expression_Against_Static_Predicate): Carry out check for any case where there is a static predicate, and output appropriate message. * sinfo.ads: Minor comment corrections. 2014-07-18 Ed Schonberg <schonberg@adacore.com> * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived from an untagged private type whose full view is tagged, the type is marked tagged for layout reasons, but it has no dispatch table, so Set_All_DT_Position must not be called. * exp_ch13.adb: If the freeze node is for a type internal to a record declaration, as is the case for a class-wide subtype of a parent component, the relevant scope is the scope of the enclosing record. From-SVN: r212804
Diffstat (limited to 'gcc/ada/sinfo.ads')
-rw-r--r--gcc/ada/sinfo.ads16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads
index d06bb4b..31c61e5 100644
--- a/gcc/ada/sinfo.ads
+++ b/gcc/ada/sinfo.ads
@@ -4022,13 +4022,13 @@ package Sinfo is
-- to deal with, and diagnose a simple expression other than a name for
-- the right operand. This simplifies error recovery in the parser.
- -- The Alternatives field below is present only if there is more
- -- than one Membership_Choice present (which is legitimate only in
- -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
- -- contains the list of choices. In the tree passed to the back end,
- -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
- -- expansion circuitry expands out the complex set membership case
- -- using simple membership operations).
+ -- The Alternatives field below is present only if there is more than
+ -- one Membership_Choice present (which is legitimate only in Ada 2012
+ -- mode) in which case Right_Opnd is Empty, and Alternatives contains
+ -- the list of choices. In the tree passed to the back end, Alternatives
+ -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
+ -- expands out the complex set membership case using simple membership
+ -- and equality operations).
-- Should we rename Alternatives here to Membership_Choices ???
@@ -4271,7 +4271,7 @@ package Sinfo is
-- CASE_EXPRESSION ::=
-- case SELECTING_EXPRESSION is
-- CASE_EXPRESSION_ALTERNATIVE
- -- {CASE_EXPRESSION_ALTERNATIVE}
+ -- {,CASE_EXPRESSION_ALTERNATIVE}
-- Note that the Alternatives cannot include pragmas (this contrasts
-- with the situation of case statements where pragmas are allowed).