Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-27 21:41:59 +0300
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-27 21:41:59 +0300
commit574f2f43948bb21d6e4187936ba5a5afccba25f6 (patch)
tree0b39aca564149e5ad30b3cc791228655ff1b1827 /coreutils/test.c
parentfe66a0eca1bfeae0abc0fc1e7d3709f271e05e82 (diff)
*: add optimization barrier to all "G trick" locations
Diffstat (limited to 'coreutils/test.c')
-rw-r--r--coreutils/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index 22dadac0e..2f5b6b8a1 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -180,6 +180,7 @@ static struct statics *const ptr_to_statics __attribute__ ((section (".data")));
#define INIT_S() do { \
(*(struct statics**)&ptr_to_statics) = xzalloc(sizeof(S)); \
+ barrier(); \
} while (0)
#define DEINIT_S() do { \
free(ptr_to_statics); \