[git commit] platform.h: disable ALIGNn macros for s390[x]

Denys Vlasenko vda.linux at googlemail.com
Mon Aug 6 15:17:15 UTC 2012


commit: http://git.busybox.net/busybox/commit/?id=2ffd710656d83c4bcc66cef10e1fe7deb1c47605
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 include/platform.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/platform.h b/include/platform.h
index ba534b2..4025561 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -284,7 +284,8 @@ typedef unsigned smalluint;
 #define fdprintf dprintf
 
 /* Useful for defeating gcc's alignment of "char message[]"-like data */
-#if 1 /* if needed: !defined(arch1) && !defined(arch2) */
+#if !defined(__s390__)
+    /* on s390[x], non-word-aligned data accesses require larger code */
 # define ALIGN1 __attribute__((aligned(1)))
 # define ALIGN2 __attribute__((aligned(2)))
 # define ALIGN4 __attribute__((aligned(4)))


More information about the busybox-cvs mailing list