]> sourceware.org Git - glibc.git/commitdiff
tile: add inhibit_loop_to_libcall to string functions
authorChris Metcalf <cmetcalf@ezchip.com>
Thu, 11 Dec 2014 20:13:48 +0000 (15:13 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Thu, 11 Dec 2014 20:13:48 +0000 (15:13 -0500)
Without this, on gcc 4.8.2 the built glibc crashes when memcpy
or memset are invoked, since they call themselves recursively.
See commit 85c2e6110c9a01ec for the generic inhibit_loop_to_libcall.

ChangeLog
sysdeps/tile/tilegx/memcpy.c
sysdeps/tile/tilegx/memset.c
sysdeps/tile/tilepro/memset.c

index 61ac73d4b948e1d52a49b1a9d4754ac8aa356d97..de2e7ccbbda96c3a4670bd1104ecdfa77b05c10b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
+
+       * sysdeps/tile/tilegx/memset.c (__memcpy): Add
+       inhibit_loop_to_libcall to avoid recursive calls.
+       * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
+       * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
+
 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
 
        * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
index 5d5df19ef34bb12e8a02303b7fb406084388e68b..abcaf4dc9348991107f621f93a39313072f8252a 100644 (file)
@@ -25,7 +25,7 @@
 /* How many cache lines ahead should we prefetch? */
 #define PREFETCH_LINES_AHEAD 3
 
-void *
+void * inhibit_loop_to_libcall
 __memcpy (void *__restrict dstv, const void *__restrict srcv, size_t n)
 {
   char *__restrict dst1 = (char *) dstv;
index d41b205a3c96bbf96c897941cfb73ae9bdb1a40b..b794bf21c4d07a9d645361cffb9330946ec14080 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdint.h>
 #include "string-endian.h"
 
-void *
+void * inhibit_loop_to_libcall
 __memset (void *s, int c, size_t n)
 {
   uint64_t *out64;
index 85d6b810ed55544652711816d0cef14cc6de5126..d24863482e23f06f5f601f74ba97f61962778145 100644 (file)
@@ -20,7 +20,7 @@
 #include <stdint.h>
 #include <arch/chip.h>
 
-void *
+void * inhibit_loop_to_libcall
 __memset (void *s, int c, size_t n)
 {
   uint32_t *out32;
This page took 0.114502 seconds and 5 git commands to generate.