From b88b91895413255ec8e4fe46db7261c7978a6ed0 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 7 Dec 2016 10:49:53 +0300 Subject: [PATCH] Enable mprotect-based incremental GC for Win64 (GCC) * include/private/gcconfig.h [X86_64 && MSWIN32 && __GNUC__] (MPROTECT_VDB): Define for GCC 4.7+ too; update comment. --- include/private/gcconfig.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 8b26ae27..1a469d54 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2548,9 +2548,10 @@ # 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 -- 2.40.0