This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Structure Return Testcase


Mark Mitchell wrote:
> 
> >>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:
> 
>     Richard> If the callee knew that the source of the copy was from
>     Richard> the local frame (or from malloced storage or any other
>     Richard> non-aliased memory) then it would know that it could use
>     Richard> memcpy.
> 
>     Richard> Otherwise it would have to use memmove.
> 
> Right.
> 
> There's really no chioce here: the committee has spoken.
> 
> --
> Mark Mitchell                   mark@codesourcery.com
> CodeSourcery, LLC               http://www.codesourcery.com

Agreed. I wasn't querying the need for memmove but just trying to determine
if we would DTRT w.r.t these hidden struct return parameters.

Graham


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]