mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
1775babf2b
GCC 4.9 -ftree-loop-distribute-patterns now may transform loops in memcpy. Add the alias to internal GLIBC symbol to avoid PLT creation.
8 lines
310 B
C
8 lines
310 B
C
/* Some compiler optimizations may transform loops into memset/memmove
|
|
calls and without proper declaration it may generate PLT calls. */
|
|
#if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED
|
|
asm ("memmove = __GI_memmove");
|
|
asm ("memset = __GI_memset");
|
|
asm ("memcpy = __GI_memcpy");
|
|
#endif
|