More fixes for unsafe compiler optimization
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 29 Apr 2014 19:15:45 +0000 (14:15 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 30 Apr 2014 13:41:42 +0000 (08:41 -0500)
GCC 4.9 -ftree-loop-distribute-patterns now may transform loops in
memcpy.  Add the alias to internal GLIBC symbol to avoid PLT creation.

ChangeLog
sysdeps/generic/symbol-hacks.h

index 6bacb5c..054072f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
+
 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
 
        * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
index 9eaf014..6bec24b 100644 (file)
@@ -3,4 +3,5 @@
 #if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED
 asm ("memmove = __GI_memmove");
 asm ("memset = __GI_memset");
+asm ("memcpy = __GI_memcpy");
 #endif