00001 /** @file 00002 * 00003 * gcc sometimes likes to insert implicit calls to memcpy(). 00004 * Unfortunately, there doesn't seem to be any way to prevent it from 00005 * doing this, or to force it to use the optimised memcpy() as seen by 00006 * C code; it insists on inserting a symbol reference to "memcpy". We 00007 * therefore include wrapper functions just to keep gcc happy. 00008 * 00009 */ 00010 00011 #include <string.h> 00012 00013 void * gcc_implicit_memcpy ( void *dest, const void *src, 00014 size_t len ) asm ( "memcpy" ); 00015 00016 void * gcc_implicit_memcpy ( void *dest, const void *src, size_t len ) { 00017 return memcpy ( dest, src, len ); 00018 }
1.5.7.1