diff options
author | Yannick Moy <moy@adacore.com> | 2022-03-11 12:55:16 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-16 08:42:04 +0000 |
commit | 7d8e3f5298608dc21757761bcab3b68365e25d1a (patch) | |
tree | fe7959f0dc84cc1517e4fca5a33bc34c6de6a527 /gcc | |
parent | aacbf3761cdd1048d22dc392216a36599da697e6 (diff) | |
download | gcc-7d8e3f5298608dc21757761bcab3b68365e25d1a.zip gcc-7d8e3f5298608dc21757761bcab3b68365e25d1a.tar.gz gcc-7d8e3f5298608dc21757761bcab3b68365e25d1a.tar.bz2 |
[Ada] Update comment justifying non-inlining for proof inside generics
gcc/ada/
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Update comment.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/inline.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb index a1d2254..0cc7171 100644 --- a/gcc/ada/inline.adb +++ b/gcc/ada/inline.adb @@ -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; |