http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57003



--- Comment #9 from Kirill Smirnov <kirill.k.smirnov at math dot spbu.ru> 
2013-04-23 15:56:59 UTC ---



>... whatever memcpy implementation you are calling and see whether it 
>correctly returns the first argument it has been passed to it in all cases.



Fails (gcc version of memcpy):

   __builtin_memcpy( buffer, DIR_Windows, len * sizeof(WCHAR) );

   __builtin_memcpy( buffer + len, default_syswow64W, sizeof(default_syswow64W)

);





Works (glibc version of memcpy):

   memcpy( buffer, DIR_Windows, len * sizeof(WCHAR) );

   memcpy( buffer + len, default_syswow64W, sizeof(default_syswow64W) );

Reply via email to