Enable mprotect-based incremental GC for Win64 (GCC)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 7 Dec 2016 07:49:53 +0000 (10:49 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 7 Dec 2016 07:49:53 +0000 (10:49 +0300)
* include/private/gcconfig.h [X86_64 && MSWIN32 && __GNUC__]
(MPROTECT_VDB): Define for GCC 4.7+ too; update comment.

include/private/gcconfig.h

index 8b26ae2..1a469d5 100644 (file)
 #       define OS_TYPE "MSWIN32"
                 /* STACKBOTTOM and DATASTART are handled specially in   */
                 /* os_dep.c.                                            */
-#       if !defined(__GNUC__) || defined(__INTEL_COMPILER)
-          /* GCC does not currently support SetUnhandledExceptionFilter */
-          /* (does not generate SEH unwinding information) on x64.      */
+#       if !defined(__GNUC__) || defined(__INTEL_COMPILER) \
+           || __GNUC__ >= 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
+          /* Older GCC has not supported SetUnhandledExceptionFilter    */
+          /* properly on x64 (e.g. SEH unwinding information missed).   */
 #         define MPROTECT_VDB
 #       endif
 #       define GWW_VDB