]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix -D_FORTIFY_SOURCE memmove and bcop
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Dec 2010 15:38:18 +0000 (10:38 -0500)
committerAndreas Schwab <schwab@redhat.com>
Mon, 13 Dec 2010 10:41:09 +0000 (11:41 +0100)
(cherry picked from commit 42acbb92c861e97a6e1293ea853db88342a1bf53)

ChangeLog
string/bits/string3.h

index a78f96d61fb448faac86ca4e7b63b430a4d72757..6a86ea7d13e268711c66151db256d1191787265f 100644 (file)
--- 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-08-11  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #11903]
index 1d759f181b1f37be75cbbc6ab60173778c6ff054..164772572bdfe16357bfcf4f0d25d5e36f0626e1 100644 (file)
@@ -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));
 }