From 205b6026930964364cd361f3dcfed6657ab934d5 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 19 Jul 2017 23:06:55 +0200 Subject: [PATCH] re PR regression/81331 (missed Eh delivery in partitioned function) PR middle-end/81331 * except.c (execute): Fix ordering issue. From-SVN: r250370 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 96c0e351624..141eb6aad2f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-19 Jan Hubicka + + PR middle-end/81331 + * except.c (execute): Fix ordering issue. + 2018-07-19 Segher Boessenkool PR rtl-optimization/81423 diff --git a/gcc/except.c b/gcc/except.c index c77d42cdfee..4068b68f31f 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -2686,8 +2686,9 @@ public: virtual bool gate (function *); virtual unsigned int execute (function *) { + int ret = convert_to_eh_region_ranges (); maybe_add_nop_after_section_switch (); - return convert_to_eh_region_ranges (); + return ret; } }; // class pass_convert_to_eh_region_ranges -- 2.30.2