diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-15 19:48:35 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-15 19:48:35 +0000 |
commit | d6361d08a794e0e761dc06ea330eb7113496d72c (patch) | |
tree | 820b303027a64c7ce81bc084ce30140792b36d3a /libbb | |
parent | 5a7eb67e30594b1b96c679cfe41336aaf5815d93 (diff) | |
download | busybox-w32-d6361d08a794e0e761dc06ea330eb7113496d72c.tar.gz busybox-w32-d6361d08a794e0e761dc06ea330eb7113496d72c.tar.bz2 busybox-w32-d6361d08a794e0e761dc06ea330eb7113496d72c.zip |
gzip: Improve ptr_to_globals trick, allowing gcc
to optimize better. -480 bytes.
git-svn-id: svn://busybox.net/trunk/busybox@18121 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/messages.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 1a10a8c9e..12a165ad7 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -57,4 +57,5 @@ WTMP_FILE; | |||
57 | char bb_common_bufsiz1[BUFSIZ+1]; | 57 | char bb_common_bufsiz1[BUFSIZ+1]; |
58 | 58 | ||
59 | struct globals; | 59 | struct globals; |
60 | struct globals *ptr_to_globals; | 60 | /* Make it reside in R/W memory: */ |
61 | struct globals *const ptr_to_globals __attribute__ ((section (".data"))); | ||