From 574f2f43948bb21d6e4187936ba5a5afccba25f6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 27 Feb 2008 18:41:59 +0000 Subject: *: add optimization barrier to all "G trick" locations --- coreutils/test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'coreutils/test.c') diff --git a/coreutils/test.c b/coreutils/test.c index 22dadac..2f5b6b8 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); \ -- cgit v1.1