Disable check of double-aligned in test/input.c on Renesas SH
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Tue, 9 Aug 2011 02:00:34 +0000 (11:00 +0900)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 14 Oct 2011 05:35:31 +0000 (15:35 +1000)
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@nigauri.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit b29ce0726d55ec41cfbce0814e21b0217ef64efe)

test/input.c

index 837ce49..6a0c523 100644 (file)
@@ -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);