-- d_h Disable the use of (perfect) hash functions for enumeration Value
-- d_i Ignore activations and calls to instances for elaboration
-- d_j Read JSON files and populate Repinfo tables (opposite of -gnatRjs)
- -- d_k
+ -- d_k In CodePeer mode disable expansion of assertion checks
-- d_l
-- d_m
-- d_n
-- compilation session if -gnatRjs was passed, in order to populate
-- the internal tables of the Repinfo unit from them.
+ -- d_k In CodePeer mode assertion expressions are expanded by default
+ -- (regardless of the -gnata compiler switch); when this switch is
+ -- enabled, expansion of assertion expressions is controlled by
+ -- pragma Assertion_Policy.
+
-- d_p The compiler ignores calls to subprograms which verify the run-time
-- semantics of invariants and postconditions in both the static and
-- dynamic elaboration models.
Generate_SCIL := True;
- -- Enable assertions, since they give CodePeer valuable extra info
+ -- Enable assertions, since they give CodePeer valuable extra info;
+ -- however, when switch -gnatd_k is active, then keep assertions
+ -- disabled by default and only enable them when explicitly
+ -- requested by pragma Assertion_Policy, just like in ordinary
+ -- compilation.
- Assertions_Enabled := True;
+ Assertions_Enabled := not Debug_Flag_Underscore_K;
-- Set normal RM validity checking and checking of copies (to catch
-- e.g. wrong values used in unchecked conversions).