* [Ada] Mark Requires_Transient_Scope as Inline
@ 2022-05-19 14:16 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-19 14:16 UTC (permalink / raw)
To: gcc-patches; +Cc: Eric Botcazou
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
The predicate is now a simple disjunction of two other predicates.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* sem_util.ads (Requires_Transient_Scope): Add pragma Inline.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 557 bytes --]
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -3068,6 +3068,7 @@ package Sem_Util is
-- previous errors (particularly in -gnatq mode).
function Requires_Transient_Scope (Typ : Entity_Id) return Boolean;
+ pragma Inline (Requires_Transient_Scope);
-- Return true if temporaries of Typ need to be wrapped in a transient
-- scope, either because they are allocated on the secondary stack or
-- finalization actions must be generated before the next instruction.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-19 14:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 14:16 [Ada] Mark Requires_Transient_Scope as Inline 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).