This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23373] Functions returning pointers with pointer argument
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2005 15:53:23 -0000
- Subject: [Bug fortran/23373] Functions returning pointers with pointer argument
- References: <20050813091629.23373.tkoenig@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2005-08-14 15:53 -------
An alternative approach to setting up a temporary in the caller would be to have
pointer-valued functions use a fake result variable, which only immediately
before returning gets assigned to the real result. This would allow the
optimizers to do a good job if nothing bad can happen.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23373