*: add optimization barrier to all "G trick" locations
[oweals/busybox.git] / libbb / lineedit.c
index c6aa45c93f32479b5b0f77f2fc06de481c950c68..d716169d40392651450c2bc4d960e3cc5505a0f2 100644 (file)
@@ -146,6 +146,7 @@ static struct statics *const ptr_to_statics __attribute__ ((section (".data")));
 
 #define INIT_S() do { \
        (*(struct statics**)&ptr_to_statics) = xzalloc(sizeof(S)); \
+       barrier(); \
        cmdedit_termw = 80; \
        USE_FEATURE_EDITING_FANCY_PROMPT(num_ok_lines = 1;) \
        USE_FEATURE_GETUSERNAME_AND_HOMEDIR(home_pwd_buf = (char*)null_str;) \