+2013-04-11 Robert Dewar <dewar@adacore.com>
+
+ * exp_ch4.adb, exp_dist.adb: Minor reformatting.
+ * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that
+ check names introduced with pragma Check_Name are suppressed by -gnatp.
+
2013-04-11 Vincent Celier <celier@adacore.com>
* gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project
-- Regardless of the anonymous-to-named access type conversion, the
-- lifetime of the object must be associated with the named access
- -- type. Use the finalization-related attributes of the named access
- -- type.
+ -- type. Use the finalization-related attributes of this type.
if Nkind_In (Parent (N), N_Type_Conversion,
N_Unchecked_Type_Conversion)
is
Constructed_TC : constant Node_Id :=
Make_Function_Call (Loc,
- Name =>
+ Name =>
New_Occurrence_Of (RTE (RE_Build_Complex_TC), Loc),
Parameter_Associations => New_List (
New_Occurrence_Of (Kind, Loc),
Make_Aggregate (Loc,
- Expressions => Parameters)));
+ Expressions => Parameters)));
begin
Set_Etype (Constructed_TC, RTE (RE_TypeCode));
return Constructed_TC;
is part of the dependency set of the current unit (e.g., units that
are mentioned in @code{with} clauses).
+Check names introduced by this pragma are subject to control by compiler
+switches (in particular -gnatp) in the usual manner.
+
@node Pragma Check_Policy
@unnumberedsec Pragma Check_Policy
@cindex Controlling assertions
the condition being checked is true, which can result in disaster if
that assumption is wrong.
+The checks subject to suppression include all the checks defined by
+the Ada standard, the additional implementation defined checks
+@code{Alignment_Check}, @code{Atomic_Synchronization}, and
+@code{Validity_Check}, as well as any checks introduced using
+@code{pragma Check_Name}.
+
The @option{-gnatp} switch has no effect if a subsequent
@option{-gnat-p} switch appears.