]> granicus.if.org Git - gc/commitdiff
Fix 'volatile' keyword placement in GC_SysVGetDataStart
authorIvan Maidanski <ivmai@mail.ru>
Mon, 27 Feb 2012 04:03:14 +0000 (08:03 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 27 Feb 2012 12:39:34 +0000 (16:39 +0400)
* os_dep.c (GC_SysVGetDataStart): Place "volatile" keyword for
"result" local variable properly.

os_dep.c

index 6a15816f371640d62c2207682f7cfca905ff9cec..b90d9a89f348ba6effd6fd682ef18a694eb835d5 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -1868,7 +1868,7 @@ void GC_register_data_segments(void)
     word next_page = ((text_end + (word)max_page_size - 1)
                       & ~((word)max_page_size - 1));
     word page_offset = (text_end & ((word)max_page_size - 1));
-    volatile char * result = (char *)(next_page + page_offset);
+    char * volatile result = (char *)(next_page + page_offset);
     /* Note that this isn't equivalent to just adding           */
     /* max_page_size to &etext if &etext is at a page boundary  */