Blame SOURCES/glibc-rh1505492-undef-30.patch

25845f
commit 64df73c2ea0e02f7794ba2f08540a74a9bb198db
25845f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
25845f
Date:   Sat Jun 28 06:05:24 2014 +0530
25845f
25845f
    Fix Wundef warning for MEMCPY_OK_FOR_FWD_MEMMOVE
25845f
    
25845f
    Define MEMCPY_OK_FOR_FWD_MEMMOVE in memcopy.h and let arch-specific
25845f
    implementations of that file override the value if necessary.  This
25845f
    override is only useful for tile and moving this macro to memcopy.h
25845f
    allows us to remove the tile-specific memmove.c.
25845f
25845f
Conflicts:
25845f
	sysdeps/tile/tilegx/memmove.c
25845f
25845f
Due to copyright header change; file removed manually.
25845f
25845f
diff --git a/sysdeps/generic/memcopy.h b/sysdeps/generic/memcopy.h
25845f
index 631214b85ab81d57..08892a4ea33f1ca7 100644
25845f
--- a/sysdeps/generic/memcopy.h
25845f
+++ b/sysdeps/generic/memcopy.h
25845f
@@ -148,4 +148,6 @@ extern void _wordcopy_bwd_dest_aligned (long int, long int, size_t) __THROW;
25845f
 /* Threshold value for when to enter the unrolled loops.  */
25845f
 #define	OP_T_THRES	16
25845f
 
25845f
+#define MEMCPY_OK_FOR_FWD_MEMMOVE 0
25845f
+
25845f
 #endif /* memcopy.h */
25845f
diff --git a/sysdeps/tile/memcopy.h b/sysdeps/tile/memcopy.h
25845f
index 2bc3fce6864315b8..2876baa0e9f9ab31 100644
25845f
--- a/sysdeps/tile/memcopy.h
25845f
+++ b/sysdeps/tile/memcopy.h
25845f
@@ -19,6 +19,12 @@
25845f
 #include <sysdeps/generic/memcopy.h>
25845f
 #include <bits/wordsize.h>
25845f
 
25845f
+/* The tilegx implementation of memcpy is safe to use for memmove.  */
25845f
+#ifdef __tilegx__
25845f
+# undef MEMCPY_OK_FOR_FWD_MEMMOVE
25845f
+# define MEMCPY_OK_FOR_FWD_MEMMOVE 1
25845f
+#endif
25845f
+
25845f
 /* Support more efficient copying on tilegx32, which supports
25845f
    long long as a native 64-bit type.  */
25845f
 #if defined (__tilegx__) && __WORDSIZE == 32
25845f
diff --git a/sysdeps/tile/tilegx/memmove.c b/sysdeps/tile/tilegx/memmove.c
25845f
deleted file mode 100644
25845f
index 0cb0a81e5fd53639..0000000000000000
25845f
--- a/sysdeps/tile/tilegx/memmove.c
25845f
+++ /dev/null
25845f
@@ -1,22 +0,0 @@
25845f
-/* Copy memory to memory until the specified number of bytes
25845f
-   has been copied.  Overlap is handled correctly.
25845f
-   Copyright (C) 2012 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library; if not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-/* The tilegx implementation of memcpy is safe to use for memmove.  */
25845f
-#define MEMCPY_OK_FOR_FWD_MEMMOVE 1
25845f
-#include <string/memmove.c>