diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-12-09 10:38:18 -0500 |
---|---|---|
committer | Petr Baudis <pasky@suse.cz> | 2011-02-03 16:30:19 +0100 |
commit | 2796cd94a85e1d6a5acb2a86e2c6cc41abc33efa (patch) | |
tree | 7f42e44c32b7c63537d3749eb98bd352fcf7ccc1 | |
parent | 837d8a0fab5ac7bbea1586e61422abce45f50393 (diff) | |
download | glibc-2796cd94a85e1d6a5acb2a86e2c6cc41abc33efa.tar.gz glibc-2796cd94a85e1d6a5acb2a86e2c6cc41abc33efa.tar.xz glibc-2796cd94a85e1d6a5acb2a86e2c6cc41abc33efa.zip |
Fix -D_FORTIFY_SOURCE memmove and bcop
(cherry picked from commit 42acbb92c861e97a6e1293ea853db88342a1bf53)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | string/bits/string3.h | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog index a96cfd59d2..ece72c8e90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-12-09 Jakub Jelinek <jakub@redhat.com> + + * string/bits/string3.h (memmove, bcopy): Remove __restrict. + 2010-11-30 Ulrich Drepper <drepper@gmail.com> * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations. diff --git a/string/bits/string3.h b/string/bits/string3.h index 1d759f181b..164772572b 100644 --- a/string/bits/string3.h +++ b/string/bits/string3.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -53,8 +53,7 @@ __NTH (memcpy (void *__restrict __dest, __const void *__restrict __src, } __extern_always_inline void * -__NTH (memmove (void *__restrict __dest, __const void *__restrict __src, - size_t __len)) +__NTH (memmove (void *__dest, __const void *__src, size_t __len)) { return __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); } @@ -88,8 +87,7 @@ __NTH (memset (void *__dest, int __ch, size_t __len)) #ifdef __USE_BSD __extern_always_inline void -__NTH (bcopy (__const void *__restrict __src, void *__restrict __dest, - size_t __len)) +__NTH (bcopy (__const void *__src, void *__dest, size_t __len)) { (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); } |