Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
586 bytes
|
Rev | Line | |
---|
[e16e8f2] | 1 | /** @file |
---|
| 2 | * |
---|
| 3 | * gcc sometimes likes to insert implicit calls to memcpy(). |
---|
| 4 | * Unfortunately, there doesn't seem to be any way to prevent it from |
---|
| 5 | * doing this, or to force it to use the optimised memcpy() as seen by |
---|
| 6 | * C code; it insists on inserting a symbol reference to "memcpy". We |
---|
| 7 | * therefore include wrapper functions just to keep gcc happy. |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #include <string.h> |
---|
| 12 | |
---|
| 13 | void * gcc_implicit_memcpy ( void *dest, const void *src, |
---|
| 14 | size_t len ) asm ( "memcpy" ); |
---|
| 15 | |
---|
| 16 | void * gcc_implicit_memcpy ( void *dest, const void *src, size_t len ) { |
---|
| 17 | return memcpy ( dest, src, len ); |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.