@@ -1983,9 +1983,9 @@ package body Inline is
then
declare
Len1 : constant Positive :=
- String (String'("cannot inline"))'Length;
+ String'("cannot inline")'Length;
Len2 : constant Positive :=
- String (String'("info: no contextual analysis of"))'Length;
+ String'("info: no contextual analysis of")'Length;
New_Msg : String (1 .. Msg'Length + Len2 - Len1);
@@ -2044,17 +2044,6 @@ package body Inline is
Error_Msg_NE (Msg (Msg'First .. Msg'Last - 1), N, Subp);
- -- In GNATprove mode, issue an info message when -gnatd_f is set and
- -- Suppress_Info is False, and indicate that the subprogram is not
- -- always inlined by setting flag Is_Inlined_Always to False.
-
- elsif GNATprove_Mode then
- Set_Is_Inlined_Always (Subp, False);
-
- if Debug_Flag_Underscore_F and not Suppress_Info then
- Error_Msg_NE (Msg, N, Subp);
- end if;
-
else
-- Do not emit warning if this is a predefined unit which is not
From: Piotr Trojanek <trojanek@adacore.com> Removed code was dead because it could only be executed when Back_End_Inlining is True and that flag is always false in GNATprove_Mode. gcc/ada/ * inline.adb (Cannot_Inline): Cleanup use of 'Length; remove dead code. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/inline.adb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-)