gzip: Improve ptr_to_globals trick, allowing gcc

to optimize better. -480 bytes.
This commit is contained in:
Denis Vlasenko
2007-03-15 19:48:35 +00:00
parent 1cc70225e7
commit bff32ce4d5
3 changed files with 8 additions and 4 deletions

View File

@@ -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")));