This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Structure Return Testcase
>>>>> "Geoff" == Geoff Keating <geoffk@geoffk.org> writes:
>> There's really no chioce here: the committee has spoken.
Geoff> Great! What did they say? (And, come to think of it,
Geoff> which committee?)
Probably we're talking sideways. I meant the ANSI/ISO C committee;
they've said that you have to do something memmove-like if you don't
know there's no overlap. That implies that if you do the
pass-a-pointer-to-the-result trick, then you need to either a)
guarantee that you pass a temporary or b) use memmove.
That's all I meant; I don't know what each of the various ABIs says
about this.
Sorry,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com