]> 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)
committerPetr Baudis <pasky@suse.cz>
Thu, 3 Feb 2011 15:30:19 +0000 (16:30 +0100)
(cherry picked from commit 42acbb92c861e97a6e1293ea853db88342a1bf53)

ChangeLog
string/bits/string3.h

index a96cfd59d2ad804ddbf9d943b8a093306a6a5511..ece72c8e902ad56a3e9114f7c4fd7a8f3a651be0 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-11-30  Ulrich Drepper  <drepper@gmail.com>
 
        * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
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));
 }