[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox-cvs
Subject: svn commit: trunk/busybox/libbb
From: vda () busybox ! net (vda at busybox ! net)
Date: 2007-09-27 20:46:09
Message-ID: 20070927204609.805B9A5E26 () busybox ! net
[Download RAW message or body]
Author: vda
Date: 2007-09-27 13:46:08 -0700 (Thu, 27 Sep 2007)
New Revision: 20068
Log:
libbb: align bb_common_bufsiz1 to "long long"
Modified:
trunk/busybox/libbb/messages.c
Changeset:
Modified: trunk/busybox/libbb/messages.c
===================================================================
--- trunk/busybox/libbb/messages.c 2007-09-27 17:11:48 UTC (rev 20067)
+++ trunk/busybox/libbb/messages.c 2007-09-27 20:46:08 UTC (rev 20068)
@@ -65,7 +65,10 @@
#error unknown path to wtmp file
#endif
-char bb_common_bufsiz1[COMMON_BUFSIZE];
+/* We use it for "global" data via *(struct global*)&bb_common_bufsiz1.
+ * Since gcc insists on aligning struct global's members, it would be a pity
+ * (and an alignment fault on some CPUs) to mess it up. */
+char bb_common_bufsiz1[COMMON_BUFSIZE] __attribute__(( aligned(sizeof(long long)) ));
struct globals;
/* Make it reside in R/W memory: */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic