Index: llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp =================================================================== --- llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp +++ llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp @@ -631,8 +631,8 @@ // Determine whether we can register EH tables. #if (defined(__GNUC__) && !defined(__ARM_EABI__) && !defined(__ia64__) && \ - !(defined(_AIX) && defined(__ibmxl__)) && !defined(__SEH__) && \ - !defined(__USING_SJLJ_EXCEPTIONS__)) + !(defined(_AIX) && defined(__ibmxl__)) && !defined(__MVS__) && \ + !defined(__SEH__) && !defined(__USING_SJLJ_EXCEPTIONS__)) #define HAVE_EHTABLE_SUPPORT 1 #else #define HAVE_EHTABLE_SUPPORT 0 Index: llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp =================================================================== --- llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp +++ llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp @@ -33,8 +33,8 @@ // Determine whether we can register EH tables. #if (defined(__GNUC__) && !defined(__ARM_EABI__) && !defined(__ia64__) && \ - !(defined(_AIX) && defined(__ibmxl__)) && !defined(__SEH__) && \ - !defined(__USING_SJLJ_EXCEPTIONS__)) + !(defined(_AIX) && defined(__ibmxl__)) && !defined(__MVS__) && \ + !defined(__SEH__) && !defined(__USING_SJLJ_EXCEPTIONS__)) #define HAVE_EHTABLE_SUPPORT 1 #else #define HAVE_EHTABLE_SUPPORT 0