aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/styleg-c.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2007-04-06 11:25:29 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-04-06 11:25:29 +0200
commita9a5b8acd29597692a4df9323f790da0d7506c76 (patch)
tree5452d8d7f7de1a366e554e6d5ccd84c49ad180c9 /gcc/ada/styleg-c.ads
parent2f41ec1a8fe5eab706ed223ab468de003d1995f0 (diff)
downloadgcc-a9a5b8acd29597692a4df9323f790da0d7506c76.zip
gcc-a9a5b8acd29597692a4df9323f790da0d7506c76.tar.gz
gcc-a9a5b8acd29597692a4df9323f790da0d7506c76.tar.bz2
sem_ch13.ads, [...] (Adjust_Record_For_Reverse_Bit_Order): Use First/Next_Component_Or_Discriminant
2007-04-06 Robert Dewar <dewar@adacore.com> * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Use First/Next_Component_Or_Discriminant (Analyze_Record_Representation_Clause): Use First/Next_Component_Or_Discriminant (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant (Analyze_Attribute_Definition_Clause, case Value_Size): Reject definition if type is unconstrained. (Adjust_Record_For_Reverse_Bit_Order): New procedure (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type. (Adjust_Record_For_Reverse_Bit_Order): New procedure * repinfo.adb (List_Record_Info): Use First/ Next_Component_Or_Discriminant. * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index): New procedure. * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch Include -gnatyA in default switches * opt.ads: (Warn_On_Non_Local_Exception): New flag (Warn_On_Reverse_Bit_Order): New flag (Extensions_Allowed): Update the documentation. (Warn_On_Questionable_Missing_Parens): Now on by default * usage.adb: Add documentation of -gnatw.x/X switches Document new -gnatyA style switch -gnatq warnings are on by default From-SVN: r123590
Diffstat (limited to 'gcc/ada/styleg-c.ads')
-rw-r--r--gcc/ada/styleg-c.ads11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ada/styleg-c.ads b/gcc/ada/styleg-c.ads
index 1ba9826..23072da 100644
--- a/gcc/ada/styleg-c.ads
+++ b/gcc/ada/styleg-c.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2005 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -38,6 +38,15 @@ package Styleg.C is
-- Called where N is a subprogram body node for a subprogram body
-- for which no spec was given, i.e. a body acting as its own spec.
+ procedure Check_Array_Attribute_Index
+ (N : Node_Id;
+ E1 : Node_Id;
+ D : Int);
+ -- Called for an array attribute specifying an index number. N is the
+ -- node for the attribute, and E1 is the index expression (Empty if none
+ -- present). If E1 is present, it is known to be a static integer. D is
+ -- the number of dimensions of the array.
+
procedure Check_Identifier
(Ref : Node_Or_Entity_Id;
Def : Node_Or_Entity_Id);