]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix pread consolidation on ports that require argument alignment
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 14 Apr 2016 19:41:33 +0000 (16:41 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 14 Apr 2016 19:49:40 +0000 (16:49 -0300)
This patch fixes the __ALIGNMENT_{ARG,COUNT} definition for ports that
define __ASSUME_ALIGNED_REGISTER_PAIRS by including the kernel-features.h
(where it is defined if the case).

This was shown on arm with failing cases:

FAIL: debug/tst-chk1
FAIL: debug/tst-chk2
FAIL: debug/tst-chk3
FAIL: debug/tst-chk4
FAIL: debug/tst-chk5
FAIL: debug/tst-chk6
FAIL: debug/tst-lfschk1
FAIL: debug/tst-lfschk2
FAIL: debug/tst-lfschk3
FAIL: debug/tst-lfschk4
FAIL: debug/tst-lfschk5
FAIL: debug/tst-lfschk6
FAIL: posix/tst-preadwrite
FAIL: posix/tst-preadwrite64

The patches fixes it.  Tested on armhf.

* sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.

ChangeLog
sysdeps/unix/sysv/linux/sysdep.h

index 3d3da39ed4ce1715f302be1f993ec7d12f767951..5d6b787329720a615148fd8c0834da8023f62d2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
+
 2016-04-14  Florian Weimer  <fweimer@redhat.com>
 
        * malloc/arena.c (__malloc_fork_lock_parent)
index 4ac4c00893b3712a260e8fbf9ca774f1acea17b8..f2d7e05975d4c13f87e4c6caa9a9a236624fb986 100644 (file)
@@ -16,6 +16,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <bits/wordsize.h>
+#include <kernel-features.h>
 
 /* Set error number and return -1.  A target may choose to return the
    internal function, __syscall_error, which sets errno and returns -1.