[Bug fortran/23373] Functions returning pointers with pointer argument

tobi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Aug 14 15:53:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list