From bff32ce4d5a22fe7664f77c96f281fe3b02a9c75 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 15 Mar 2007 19:48:35 +0000 Subject: gzip: Improve ptr_to_globals trick, allowing gcc to optimize better. -480 bytes. --- libbb/messages.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbb') 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; char bb_common_bufsiz1[BUFSIZ+1]; struct globals; -struct globals *ptr_to_globals; +/* Make it reside in R/W memory: */ +struct globals *const ptr_to_globals __attribute__ ((section (".data"))); -- cgit v1.2.3