diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-15 19:48:35 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-15 19:48:35 +0000 |
commit | bff32ce4d5a22fe7664f77c96f281fe3b02a9c75 (patch) | |
tree | 820b303027a64c7ce81bc084ce30140792b36d3a /archival | |
parent | 1cc70225e7bfee447543ea38b08c7caeb6492c8b (diff) | |
download | busybox-bff32ce4d5a22fe7664f77c96f281fe3b02a9c75.tar.gz |
gzip: Improve ptr_to_globals trick, allowing gcc
to optimize better. -480 bytes.
Diffstat (limited to 'archival')
-rw-r--r-- | archival/gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index 6af6c1886..c2333e3b1 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -2045,8 +2045,8 @@ int gzip_main(int argc, char **argv) } #endif - ptr_to_globals = xzalloc(sizeof(struct globals) + sizeof(struct globals2)); - ptr_to_globals++; + PTR_TO_GLOBALS = xzalloc(sizeof(struct globals) + sizeof(struct globals2)) + + sizeof(struct globals); G2.l_desc.dyn_tree = G2.dyn_ltree; G2.l_desc.static_tree = G2.static_ltree; G2.l_desc.extra_bits = extra_lbits; |