re PR regression/81331 (missed Eh delivery in partitioned function)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 19 Jul 2017 21:06:55 +0000 (23:06 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 19 Jul 2017 21:06:55 +0000 (21:06 +0000)
PR middle-end/81331
* except.c (execute): Fix ordering issue.

From-SVN: r250370

gcc/ChangeLog
gcc/except.c

index 96c0e351624a21ae43f93f2569eb9945ef97916d..141eb6aad2f3d34c1e791988cb0fc36886f88512 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR middle-end/81331
+       * except.c (execute): Fix ordering issue.
+
 2018-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
 
        PR rtl-optimization/81423
index c77d42cdfeedb820cb2421eeb6cfa7b4cb903ad9..4068b68f31ffa0f1398677760a53671d839cf229 100644 (file)
@@ -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