diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-27 18:41:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-27 18:41:59 +0000 |
commit | 574f2f43948bb21d6e4187936ba5a5afccba25f6 (patch) | |
tree | 0b39aca564149e5ad30b3cc791228655ff1b1827 /libbb/lineedit.c | |
parent | fe66a0eca1bfeae0abc0fc1e7d3709f271e05e82 (diff) | |
download | busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.tar.gz busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.tar.bz2 busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.zip |
*: add optimization barrier to all "G trick" locations
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index c6aa45c93..d716169d4 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -146,6 +146,7 @@ static struct statics *const ptr_to_statics __attribute__ ((section (".data"))); | |||
146 | 146 | ||
147 | #define INIT_S() do { \ | 147 | #define INIT_S() do { \ |
148 | (*(struct statics**)&ptr_to_statics) = xzalloc(sizeof(S)); \ | 148 | (*(struct statics**)&ptr_to_statics) = xzalloc(sizeof(S)); \ |
149 | barrier(); \ | ||
149 | cmdedit_termw = 80; \ | 150 | cmdedit_termw = 80; \ |
150 | USE_FEATURE_EDITING_FANCY_PROMPT(num_ok_lines = 1;) \ | 151 | USE_FEATURE_EDITING_FANCY_PROMPT(num_ok_lines = 1;) \ |
151 | USE_FEATURE_GETUSERNAME_AND_HOMEDIR(home_pwd_buf = (char*)null_str;) \ | 152 | USE_FEATURE_GETUSERNAME_AND_HOMEDIR(home_pwd_buf = (char*)null_str;) \ |