You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gcc_implicit.c 615B

1234567891011121314151617181920
  1. /** @file
  2. *
  3. * gcc implicit functions
  4. *
  5. * gcc sometimes likes to insert implicit calls to memcpy().
  6. * Unfortunately, there doesn't seem to be any way to prevent it from
  7. * doing this, or to force it to use the optimised memcpy() as seen by
  8. * C code; it insists on inserting a symbol reference to "memcpy". We
  9. * therefore include wrapper functions just to keep gcc happy.
  10. *
  11. */
  12. #include <string.h>
  13. void * gcc_implicit_memcpy ( void *dest, const void *src,
  14. size_t len ) asm ( "memcpy" );
  15. void * gcc_implicit_memcpy ( void *dest, const void *src, size_t len ) {
  16. return memcpy ( dest, src, len );
  17. }