aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-04-21 21:47:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-04-21 21:47:45 +0200
commit93e1aaa1c7e5ed6d2704262700ec28837bdfc9b7 (patch)
treeff6196f459e660dcce943bf0e1f79a46cf09e6fc /scripts
parentf56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0 (diff)
downloadbusybox-93e1aaa1c7e5ed6d2704262700ec28837bdfc9b7.tar.gz
libbb: constify *bb_common_bufsiz1 (if it is compiled to be a pointer)
This lets gcc optimize much better: text data bss dec hex filename 922846 910 13056 936812 e4b6c busybox_unstripped.nonconst 920255 910 13056 934221 e414d busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_BUFSIZ.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_BUFSIZ.sh b/scripts/generate_BUFSIZ.sh
index d54142597..1914fa0f5 100755
--- a/scripts/generate_BUFSIZ.sh
+++ b/scripts/generate_BUFSIZ.sh
@@ -77,7 +77,7 @@ if test $REM -lt 1024; then
# users will need to malloc it.
{
echo "enum { COMMON_BUFSIZE = 1024 };"
- echo "extern char *bb_common_bufsiz1;"
+ echo "extern char *const bb_common_bufsiz1;"
echo "void setup_common_bufsiz(void);"
} | regenerate "$common_bufsiz_h"
# Check that we aren't left with a buggy binary: