diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-06-20 19:40:55 -0500 |
---|---|---|
committer | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2013-07-26 12:56:47 -0500 |
commit | 5c616c0a75792d2836412d6c4ed5c71e8e754992 (patch) | |
tree | d662e38ab9072af8da711afaa7fc7decd71c2af7 /string/memset.c | |
parent | 3ca2c50727b3e3e22eb3606135a18c6212f516d2 (diff) | |
download | glibc-5c616c0a75792d2836412d6c4ed5c71e8e754992.tar.gz |
Fix loop construction to functions calls
Check wheter the compiler has the option -fno-tree-loop-distribute-patterns
to inhibit loop transformation to library calls and uses it on memset
and memmove default implementation to avoid recursive calls.
(backported from commit 85c2e6110c9a01ec817c30f1b7e20549d7229987)
This backport excluded the benchmark tests from the original commit.
Diffstat (limited to 'string/memset.c')
-rw-r--r-- | string/memset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/string/memset.c b/string/memset.c index 036cb5f624..eb83c1b5a8 100644 --- a/string/memset.c +++ b/string/memset.c @@ -21,6 +21,7 @@ #undef memset void * +inhibit_loop_to_libcall memset (dstpp, c, len) void *dstpp; int c; |