Hi Maxim,
I checked against version 1.4 of src/newlib/libc/machine/m68k/memcpy.S.
//
// Must be bigger than 8 bytes to bypass test at line 40 // const char
SrcTestString[] = "01234567890"; char DestTestString[ 20 ];
int main( int argc, char **argv ) {
// Working since src and dest are properly aligned by the compiler.
memcpy(&DestTestString[ 0 ],&SrcTestString[ 0 ], sizeof( SrcTestString ));
// Dst is aligned but src is not, should create an address error at line 63.
memcpy(&DestTestString[ 0 ],&SrcTestString[ 1 ], sizeof(
SrcTestString) - 1 ));
exit( 0 );
}