From patchwork Thu Jun 26 18:54:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 1773 Received: (qmail 21539 invoked by alias); 26 Jun 2014 18:52:45 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 21530 invoked by uid 89); 26 Jun 2014 18:52:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Fri, 27 Jun 2014 00:24:13 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] Fix Wundef warning for MEMCPY_OK_FOR_FWD_MEMMOVE Message-ID: <20140626185412.GA1826@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) Define MEMCPY_OK_FOR_FWD_MEMMOVE to 0 in x86_64 memmove.c before including the generic string/memmove.c to get rid of this warning. Tested to verify on x86_64 that the generated code is identical. Siddhesh * sysdeps/x86_64/memmove.c: Define MEMCPY_OK_FOR_FWD_MEMMOVE to 0. * sysdeps/x86_64/multiarch/memmove.c: Likewise. --- sysdeps/x86_64/memmove.c | 1 + sysdeps/x86_64/multiarch/memmove.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sysdeps/x86_64/memmove.c b/sysdeps/x86_64/memmove.c index 202f5b8..9013c105 100644 --- a/sysdeps/x86_64/memmove.c +++ b/sysdeps/x86_64/memmove.c @@ -15,6 +15,7 @@ License along with the GNU C Library; if not, see . */ +#define MEMCPY_OK_FOR_FWD_MEMMOVE 0 #include "string/memmove.c" #if !defined memmove && !defined NOT_IN_libc diff --git a/sysdeps/x86_64/multiarch/memmove.c b/sysdeps/x86_64/multiarch/memmove.c index ba86e7b..5477be1 100644 --- a/sysdeps/x86_64/multiarch/memmove.c +++ b/sysdeps/x86_64/multiarch/memmove.c @@ -37,6 +37,7 @@ extern __typeof (__redirect_memmove) __memmove_ssse3 attribute_hidden; extern __typeof (__redirect_memmove) __memmove_ssse3_back attribute_hidden; #endif +#define MEMCPY_OK_FOR_FWD_MEMMOVE 0 #include "string/memmove.c" #ifndef NOT_IN_libc