diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 20:46:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 20:46:08 +0000 |
commit | 1d31f0f3800f00743ae627a38d55e8c7507bea75 (patch) | |
tree | 56dac22deec0149f9a827a683b4c2e5b9bfd64cf | |
parent | 78e2d4e3619afd7167f820dc7617b3517a79fd7c (diff) | |
download | busybox-w32-1d31f0f3800f00743ae627a38d55e8c7507bea75.tar.gz busybox-w32-1d31f0f3800f00743ae627a38d55e8c7507bea75.tar.bz2 busybox-w32-1d31f0f3800f00743ae627a38d55e8c7507bea75.zip |
libbb: align bb_common_bufsiz1 to "long long"
-rw-r--r-- | libbb/messages.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 0e43ab674..a64aa405e 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -65,7 +65,10 @@ const char bb_path_wtmp_file[] ALIGN1 = | |||
65 | #error unknown path to wtmp file | 65 | #error unknown path to wtmp file |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | char bb_common_bufsiz1[COMMON_BUFSIZE]; | 68 | /* We use it for "global" data via *(struct global*)&bb_common_bufsiz1. |
69 | * Since gcc insists on aligning struct global's members, it would be a pity | ||
70 | * (and an alignment fault on some CPUs) to mess it up. */ | ||
71 | char bb_common_bufsiz1[COMMON_BUFSIZE] __attribute__(( aligned(sizeof(long long)) )); | ||
69 | 72 | ||
70 | struct globals; | 73 | struct globals; |
71 | /* Make it reside in R/W memory: */ | 74 | /* Make it reside in R/W memory: */ |