except.c (expand_eh_region_end_cleanup): Force pending stack adjust before emitting...
authorAndrew Haley <aph@cambridge.redhat.com>
Thu, 26 Apr 2001 17:49:01 +0000 (17:49 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Thu, 26 Apr 2001 17:49:01 +0000 (17:49 +0000)
2001-04-26  Andrew Haley  <aph@redhat.com>

        * except.c (expand_eh_region_end_cleanup): Force pending stack
        adjust before emitting label that branches around cleanup code.

From-SVN: r41598

gcc/ChangeLog
gcc/except.c

index 3c8e684780c508bac2acc8acd35aa5159a0a114b..57205d11bc60a7073ad29fac0ffe568dc054052b 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-26  Andrew Haley  <aph@cambridge.redhat.com>
+
+       * except.c (expand_eh_region_end_cleanup): Force pending stack
+       adjust before emitting label that branches around cleanup code. 
+
 2001-04-26  H.J. Lu  (hjl@gnu.org)
 
        * config.gcc (mips*-*-linux*): Add elfos.h to tm_file.
index 790f2ce4ec50166842076e766017a219723f4c04..163d5ed17c9d00335e33636d4102fe11f62a4673 100644 (file)
@@ -750,6 +750,9 @@ expand_eh_region_end_cleanup (handler)
   if (protect_cleanup_actions)
     expand_eh_region_end_must_not_throw (protect_cleanup_actions);
 
+  /* We need any stack adjustment complete before the around_label.  */
+  do_pending_stack_adjust ();
+
   /* We delay the generation of the _Unwind_Resume until we generate
      landing pads.  We emit a marker here so as to get good control
      flow data in the meantime.  */