http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57040
Bug #: 57040 Summary: SEH Exception defined is conflicted with SJLJ Eception within several files. Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: ada AssignedTo: unassig...@gcc.gnu.org ReportedBy: ray_l...@hotmail.com Today I complied the new GCC 4.8.0 for MinGW-W64, I specified to enable SJLJ Exception in configure commands, and several error occurs in different libraries. files impact: ada/raise-gcc.c , libobjc/exception.c. Error Message is as following: C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:528:1: error: unknown type n ame 'EXCEPTION_DISPOSITION' EXCEPTION_DISPOSITION ^ C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:529:30: error: unknown type name 'PEXCEPTION_RECORD' __gnu_objc_personality_seh0 (PEXCEPTION_RECORD ms_exc, void *this_frame, ^ C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:530:9: error: unknown type n ame 'PCONTEXT' PCONTEXT ms_orig_context, ^ C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:531:9: error: unknown type n ame 'PDISPATCHER_CONTEXT' PDISPATCHER_CONTEXT ms_disp) ^ C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:203:30: warning: '__gnu_objc _personality_sj0' defined but not used [-Wunused-function] #define PERSONALITY_FUNCTION __gnu_objc_personality_sj0 ^ C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:234:1: note: in expansion of macro 'PERSONALITY_FUNCTION' PERSONALITY_FUNCTION (int version, Solution is simple, find out all #ifdef __SEH__ and repalced it with #if defined(__SEH__) && !defined(SJLJ_EXCEPTIONS) please help to patch.