This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Structure Return Testcase
>>>>> "Jeffrey" == Jeffrey A Law <law@redhat.com> writes:
Jeffrey> I'd think you'd want a bit on the expression. Or maybe
Jeffrey> the other way around, a bit when we know there's no
Jeffrey> overlap (ie, flip the default to be the safe way --
Jeffrey> memmove and use memcpy only when we can prove its safe).
Agreed; conservative defaults are good.
Jeffrey> That's what I'm starting to think is the right thing to
Jeffrey> do. Let's get it working correctly, then try to
Jeffrey> improve/refine our selection of memcpy vs memmove.
Yup, me too.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com