From 933115aab248ec7e87fc259e914d949eba4a2be3 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 10 Mar 2019 04:47:18 -0400 Subject: finish_options(): properly account for UI_SEH. --- gcc/opts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/opts.c b/gcc/opts.c index 9f9335653..1d7c71ee6 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -716,7 +716,7 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, if (opts->x_flag_exceptions && opts->x_flag_reorder_blocks_and_partition - && (ui_except == UI_SJLJ || ui_except == UI_TARGET)) + && (ui_except == UI_SJLJ || ui_except == UI_TARGET || ui_except == UI_SEH)) { inform (loc, "-freorder-blocks-and-partition does not work " @@ -731,7 +731,7 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, if (opts->x_flag_unwind_tables && !targetm.unwind_tables_default && opts->x_flag_reorder_blocks_and_partition - && (ui_except == UI_SJLJ || ui_except == UI_TARGET)) + && (ui_except == UI_SJLJ || ui_except == UI_TARGET || ui_except == UI_SEH)) { inform (loc, "-freorder-blocks-and-partition does not support " @@ -748,7 +748,7 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, && (!targetm.have_named_sections || (opts->x_flag_unwind_tables && targetm.unwind_tables_default - && (ui_except == UI_SJLJ || ui_except == UI_TARGET)))) + && (ui_except == UI_SJLJ || ui_except == UI_TARGET || ui_except == UI_SEH)))) { inform (loc, "-freorder-blocks-and-partition does not work " -- cgit v1.2.3