Commit f29234df by Iain Sandoe Committed by Iain Sandoe

darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT runtime exceptions…

darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT runtime exceptions model setting from here ...



	* config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
	runtime exceptions model setting from here ...
	* config/darwin.c (darwin_override_options): ... to here.

From-SVN: r189390
parent 238065a7
2012-07-09 Iain Sandoe <iain@codesourcery.com>
* config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
runtime exceptions model setting from here ...
* config/darwin.c (darwin_override_options): ... to here.
2012-07-09 Steven Bosscher <steven@gcc.gnu.org> 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
PR tree-optimization/53887 PR tree-optimization/53887
......
...@@ -3007,6 +3007,18 @@ darwin_override_options (void) ...@@ -3007,6 +3007,18 @@ darwin_override_options (void)
flag_reorder_blocks = 1; flag_reorder_blocks = 1;
} }
/* FIXME: flag_objc_sjlj_exceptions is no longer needed since there is only
one valid choice of exception scheme for each runtime. */
if (!global_options_set.x_flag_objc_sjlj_exceptions)
global_options.x_flag_objc_sjlj_exceptions =
flag_next_runtime && !TARGET_64BIT;
/* FIXME: and this could be eliminated then too. */
if (!global_options_set.x_flag_exceptions
&& flag_objc_exceptions
&& TARGET_64BIT)
flag_exceptions = 1;
if (flag_mkernel || flag_apple_kext) if (flag_mkernel || flag_apple_kext)
{ {
/* -mkernel implies -fapple-kext for C++ */ /* -mkernel implies -fapple-kext for C++ */
......
...@@ -140,9 +140,6 @@ extern GTY(()) int darwin_ms_struct; ...@@ -140,9 +140,6 @@ extern GTY(()) int darwin_ms_struct;
} while (0) } while (0)
#define SUBTARGET_C_COMMON_OVERRIDE_OPTIONS do { \ #define SUBTARGET_C_COMMON_OVERRIDE_OPTIONS do { \
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_mkernel || flag_apple_kext) \
{ \ { \
if (flag_use_cxa_atexit == 2) \ if (flag_use_cxa_atexit == 2) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment