diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-11-30 13:03:03 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-11-30 13:03:03 +0100 |
| commit | 965b795b87c59ed45cc7f16a62301dbae65b1627 (patch) | |
| tree | 958e486f4f23177746ddee11913d3b59ff4e7f8e /coreutils | |
| parent | 2fba2f5bb99145eaa1635fe5a162426158d56a2c (diff) | |
| download | busybox-w32-965b795b87c59ed45cc7f16a62301dbae65b1627.tar.gz busybox-w32-965b795b87c59ed45cc7f16a62301dbae65b1627.tar.bz2 busybox-w32-965b795b87c59ed45cc7f16a62301dbae65b1627.zip | |
decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly
text data bss dec hex filename
1021988 559 5052 1027599 fae0f busybox_old
1021236 559 5052 1026847 fab1f busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/od_bloaty.c | 4 | ||||
| -rw-r--r-- | coreutils/split.c | 2 | ||||
| -rw-r--r-- | coreutils/stat.c | 2 | ||||
| -rw-r--r-- | coreutils/stty.c | 4 | ||||
| -rw-r--r-- | coreutils/test.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index e9c071f3a..d5bd7bfe8 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
| @@ -627,7 +627,7 @@ decode_one_format(const char *s_orig, const char *s, struct tspec *tspec) | |||
| 627 | bytes_to_unsigned_dec_digits, | 627 | bytes_to_unsigned_dec_digits, |
| 628 | bytes_to_hex_digits, | 628 | bytes_to_hex_digits, |
| 629 | }; | 629 | }; |
| 630 | static const char doux_fmtstring[][sizeof(" %%0%u%s")] = { | 630 | static const char doux_fmtstring[][sizeof(" %%0%u%s")] ALIGN1 = { |
| 631 | " %%%u%s", | 631 | " %%%u%s", |
| 632 | " %%0%u%s", | 632 | " %%0%u%s", |
| 633 | " %%%u%s", | 633 | " %%%u%s", |
| @@ -1148,7 +1148,7 @@ dump_strings(off_t address, off_t end_offset) | |||
| 1148 | static int | 1148 | static int |
| 1149 | parse_old_offset(const char *s, off_t *offset) | 1149 | parse_old_offset(const char *s, off_t *offset) |
| 1150 | { | 1150 | { |
| 1151 | static const struct suffix_mult Bb[] = { | 1151 | static const struct suffix_mult Bb[] ALIGN_SUFFIX = { |
| 1152 | { "B", 1024 }, | 1152 | { "B", 1024 }, |
| 1153 | { "b", 512 }, | 1153 | { "b", 512 }, |
| 1154 | { "", 0 } | 1154 | { "", 0 } |
diff --git a/coreutils/split.c b/coreutils/split.c index ecbc9d2d8..3fcfd95f2 100644 --- a/coreutils/split.c +++ b/coreutils/split.c | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | #include "common_bufsiz.h" | 44 | #include "common_bufsiz.h" |
| 45 | 45 | ||
| 46 | #if ENABLE_FEATURE_SPLIT_FANCY | 46 | #if ENABLE_FEATURE_SPLIT_FANCY |
| 47 | static const struct suffix_mult split_suffixes[] = { | 47 | static const struct suffix_mult split_suffixes[] ALIGN_SUFFIX = { |
| 48 | { "b", 512 }, | 48 | { "b", 512 }, |
| 49 | { "k", 1024 }, | 49 | { "k", 1024 }, |
| 50 | { "m", 1024*1024 }, | 50 | { "m", 1024*1024 }, |
diff --git a/coreutils/stat.c b/coreutils/stat.c index 8a23d687b..ee5e03edd 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
| @@ -208,7 +208,7 @@ FS_TYPE(0x62656572, "sysfs") | |||
| 208 | static const char *human_fstype(uint32_t f_type) | 208 | static const char *human_fstype(uint32_t f_type) |
| 209 | { | 209 | { |
| 210 | # define FS_TYPE(type, name) type, | 210 | # define FS_TYPE(type, name) type, |
| 211 | static const uint32_t fstype[] = { | 211 | static const uint32_t fstype[] ALIGN4 = { |
| 212 | FS_TYPE_LIST | 212 | FS_TYPE_LIST |
| 213 | }; | 213 | }; |
| 214 | # undef FS_TYPE | 214 | # undef FS_TYPE |
diff --git a/coreutils/stty.c b/coreutils/stty.c index 40e812799..19253964c 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
| @@ -487,7 +487,7 @@ static const char mode_name[] ALIGN1 = | |||
| 487 | #undef MI_ENTRY | 487 | #undef MI_ENTRY |
| 488 | #define MI_ENTRY(N,T,F,B,M) { T, F, M, B }, | 488 | #define MI_ENTRY(N,T,F,B,M) { T, F, M, B }, |
| 489 | 489 | ||
| 490 | static const struct mode_info mode_info[] = { | 490 | static const struct mode_info mode_info[] ALIGN4 = { |
| 491 | /* This should be verbatim cut-n-paste copy of the above MI_ENTRYs */ | 491 | /* This should be verbatim cut-n-paste copy of the above MI_ENTRYs */ |
| 492 | MI_ENTRY("evenp", combination, REV | OMIT, 0, 0 ) | 492 | MI_ENTRY("evenp", combination, REV | OMIT, 0, 0 ) |
| 493 | MI_ENTRY("parity", combination, REV | OMIT, 0, 0 ) | 493 | MI_ENTRY("parity", combination, REV | OMIT, 0, 0 ) |
| @@ -905,7 +905,7 @@ static void display_window_size(int fancy) | |||
| 905 | } | 905 | } |
| 906 | } | 906 | } |
| 907 | 907 | ||
| 908 | static const struct suffix_mult stty_suffixes[] = { | 908 | static const struct suffix_mult stty_suffixes[] ALIGN_SUFFIX = { |
| 909 | { "b", 512 }, | 909 | { "b", 512 }, |
| 910 | { "k", 1024 }, | 910 | { "k", 1024 }, |
| 911 | { "B", 1024 }, | 911 | { "B", 1024 }, |
diff --git a/coreutils/test.c b/coreutils/test.c index ac7b546a3..7c6574334 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
| @@ -306,7 +306,7 @@ struct operator_t { | |||
| 306 | unsigned char op_num, op_type; | 306 | unsigned char op_num, op_type; |
| 307 | }; | 307 | }; |
| 308 | 308 | ||
| 309 | static const struct operator_t ops_table[] = { | 309 | static const struct operator_t ops_table[] ALIGN2 = { |
| 310 | { /* "-r" */ FILRD , UNOP }, | 310 | { /* "-r" */ FILRD , UNOP }, |
| 311 | { /* "-w" */ FILWR , UNOP }, | 311 | { /* "-w" */ FILWR , UNOP }, |
| 312 | { /* "-x" */ FILEX , UNOP }, | 312 | { /* "-x" */ FILEX , UNOP }, |
