This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Structure Return Testcase
On Thu, Mar 15, 2001 at 11:23:58PM +0000, Graham Stott wrote:
> Are the various API calling conventions w.r.t structure returns going
> to come into play here. The one I'm thing of is the hidden pointer how
> would the callee know to use memmove and not memcpy?
If the callee knew that the source of the copy was from the local
frame (or from malloced storage or any other non-aliased memory)
then it would know that it could use memcpy.
Otherwise it would have to use memmove.
r~