public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3699] ada: Elide the copy in extended returns for nonlimited by-reference types
@ 2023-09-05 11:09 Marc Poulhi?s
0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-09-05 11:09 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:da4e06d476d55193dad66628160a089e5ec1e737
commit r14-3699-gda4e06d476d55193dad66628160a089e5ec1e737
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Wed Aug 23 15:11:57 2023 +0200
ada: Elide the copy in extended returns for nonlimited by-reference types
gcc/ada/
* gcc-interface/trans.cc (gnat_to_gnu): Really test Storage_Pool on
the simple return statement.
Diff:
---
gcc/ada/gcc-interface/trans.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/gcc-interface/trans.cc b/gcc/ada/gcc-interface/trans.cc
index 5d93060c6d85..e99fbb4eb5ed 100644
--- a/gcc/ada/gcc-interface/trans.cc
+++ b/gcc/ada/gcc-interface/trans.cc
@@ -8519,7 +8519,7 @@ gnat_to_gnu (Node_Id gnat_node)
&& ((Nkind (Parent (gnat_node)) == N_Attribute_Reference
&& lvalue_required_for_attribute_p (Parent (gnat_node)))
|| (Nkind (Parent (gnat_node)) == N_Simple_Return_Statement
- && No (Storage_Pool (gnat_node)))))
+ && No (Storage_Pool (Parent (gnat_node))))))
;
else if (TREE_TYPE (gnu_result) != gnu_result_type)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-05 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-05 11:09 [gcc r14-3699] ada: Elide the copy in extended returns for nonlimited by-reference types Marc Poulhi?s
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).