[PATCH xserver] Disable check of double-aligned in test/input.c on Renesas SH

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Mon Aug 8 19:00:34 PDT 2011


Renesas SH is not aligned at size of double.
When structure has double value, It is aligned in 4byte (long).

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
---
 test/input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/input.c b/test/input.c
index 837ce49..6a0c523 100644
--- a/test/input.c
+++ b/test/input.c
@@ -1223,7 +1223,7 @@ static void dix_valuator_alloc(void)
 
         assert(v);
         assert(v->numAxes == num_axes);
-#ifndef __i386__
+#if !defined(__i386__) && !defined(__sh__)
         /* must be double-aligned on 64 bit */
         assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
         assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);
-- 
1.7.5.4



More information about the xorg-devel mailing list