public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-488] [Ada] Update comment justifying non-inlining for proof inside generics
@ 2022-05-16 8:44 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-16 8:44 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7d8e3f5298608dc21757761bcab3b68365e25d1a
commit r13-488-g7d8e3f5298608dc21757761bcab3b68365e25d1a
Author: Yannick Moy <moy@adacore.com>
Date: Fri Mar 11 12:55:16 2022 +0100
[Ada] Update comment justifying non-inlining for proof inside generics
gcc/ada/
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Update comment.
Diff:
---
gcc/ada/inline.adb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb
index a1d22544874..0cc7171588a 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-16 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16 8:44 [gcc r13-488] [Ada] Update comment justifying non-inlining for proof inside generics Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).