This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED PATCH] Remove unnecessary include in memmove_chk.c


I have pushed this as obvious since the generated code is identical
before and after on x86_64.  As a bonus, it gets rid of two -Wundef
warnings that were unnecessarily inherited from pagecopy.h.

Siddhesh

commit b97c9ce50d5d004285fc43c3f99b27630a155c5f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Fri Jun 27 00:01:37 2014 +0530

    Remove unnecessary include in memmove_chk
    
    This also has the side-effect of fixing a couple of Wundef warnings
    raised from pagecopy.h.  The generated code is identical before and
    after this patch.

diff --git a/ChangeLog b/ChangeLog
index 506eaed..44f96bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* debug/memmove_chk.c: Remove pagecopy.h include.
+
 	* time/mktime.c (leapyear): Remove inline keyword.  The code is now
 	identical to gnulib mktime.
 
diff --git a/debug/memmove_chk.c b/debug/memmove_chk.c
index f8c4454..10eb632 100644
--- a/debug/memmove_chk.c
+++ b/debug/memmove_chk.c
@@ -20,7 +20,6 @@
 
 #include <string.h>
 #include <memcopy.h>
-#include <pagecopy.h>
 
 #ifndef MEMMOVE_CHK
 # define MEMMOVE_CHK __memmove_chk

Attachment: pgpgT8NKibChv.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]