]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Update comment justifying non-inlining for proof inside generics
authorYannick Moy <moy@adacore.com>
Fri, 11 Mar 2022 11:55:16 +0000 (12:55 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 16 May 2022 08:42:04 +0000 (08:42 +0000)
gcc/ada/

* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Update comment.

gcc/ada/inline.adb

index a1d22544874f967df75e76f268f108f8f519b1c7..0cc7171588a7fbbdc06d1ab553ecb5b9aafb4cc1 100644 (file)
@@ -1893,8 +1893,9 @@ package body Inline is
       then
          return False;
 
-      --  Subprograms in generic instances are currently not inlined, to avoid
-      --  problems with inlining of standard library subprograms.
+      --  Subprograms in generic instances are currently not inlined, as this
+      --  interacts badly with the expansion of object renamings in GNATprove
+      --  mode.
 
       elsif Instantiation_Location (Sloc (Id)) /= No_Location then
          return False;