The purpose of this patch is to silence a GNATSAS report.
gcc/ada/
* inline.adb (Cannot_Inline): Remove assertion.
* inline.ads (Cannot_Inline): Add precondition.
end;
end if;
- pragma Assert (Msg (Msg'Last) = '?');
-
-- Legacy front-end inlining model
if not Back_End_Inlining then
N : Node_Id;
Subp : Entity_Id;
Is_Serious : Boolean := False;
- Suppress_Info : Boolean := False);
+ Suppress_Info : Boolean := False)
+ with
+ Pre => Msg'First <= Msg'Last
+ and then Msg (Msg'Last) = '?';
-- This procedure is called if the node N, an instance of a call to
-- subprogram Subp, cannot be inlined. Msg is the message to be issued,
-- which ends with ? (it does not end with ?p?, this routine takes care of