From: Ivan Maidanski Date: Mon, 27 Feb 2012 04:03:14 +0000 (+0400) Subject: Fix 'volatile' keyword placement in GC_SysVGetDataStart X-Git-Tag: gc7_3alpha2~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7b73ddf57f74023926fd323c71d1e15725ceeeb;p=gc Fix 'volatile' keyword placement in GC_SysVGetDataStart * os_dep.c (GC_SysVGetDataStart): Place "volatile" keyword for "result" local variable properly. --- diff --git a/os_dep.c b/os_dep.c index 6a15816f..b90d9a89 100644 --- 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 */