diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-18 09:16:09 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-18 09:16:09 +0000 |
commit | e3b361532eecd52ec24d09e111106f18b54a13db (patch) | |
tree | c64080713f97088e96e50c925dc52a46b371a863 /gcc/config/darwin.h | |
parent | 3e1187f2c8be0cad8b3b73acf7ff665ea94f27ea (diff) | |
download | ppe42-gcc-e3b361532eecd52ec24d09e111106f18b54a13db.tar.gz ppe42-gcc-e3b361532eecd52ec24d09e111106f18b54a13db.zip |
gcc:
* config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS):
Only set sjlj exceptions for NeXT/m32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168018 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index a2694b873ae..fe266c037f4 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -140,6 +140,11 @@ extern GTY(()) int darwin_ms_struct; } while (0) #define SUBTARGET_C_COMMON_OVERRIDE_OPTIONS do { \ + /* Sort out ObjC exceptions: If the runtime is NeXT we default to \ + sjlj for m32 only. */ \ + if (!global_options_set.x_flag_objc_sjlj_exceptions) \ + global_options.x_flag_objc_sjlj_exceptions = \ + flag_next_runtime && !TARGET_64BIT; \ if (flag_mkernel || flag_apple_kext) \ { \ if (flag_use_cxa_atexit == 2) \ |