]> granicus.if.org Git - gc/commit
Fix GC_finalizer_nested size to workaround alignment problem in Watcom
authorIvan Maidanski <ivmai@mail.ru>
Thu, 16 Feb 2012 18:05:31 +0000 (22:05 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 16 Feb 2012 21:14:59 +0000 (01:14 +0400)
commit7ec7f03cbfc351e5fd7a5c24d5f5fbb59063671a
treee34e3ac3c7c853f7ff05d9f775d6ba3a33702fd7
parent903df95c25f248701faa784b2dd98e681682e547
Fix GC_finalizer_nested size to workaround alignment problem in Watcom

* finalize.c (GC_finalizer_nested): Change type from char to int to
force GC symbols proper alignment for some compilers (e.g., Watcom);
add comment.
* finalize.c (GC_check_finalizer_nested): Cast GC_finalizer_nested
properly (since it holds an unsigned char value).
* os_dep.c (GC_get_maps): Remove static "init_buf" variable (of char
size) and initialize "maps_buf" to NULL since it is allocated anyway
(since maps_size is non-zero).
* os_dep.c (GC_register_data_segments): Remove static "dummy" variable
(of char size) and use GC_pages_executable instead.
finalize.c
os_dep.c