builtins.c (expand_builtin_setjmp_setup): Set current_function_has_nonlocal_label.
authorJeffrey A Law <law@cygnus.com>
Wed, 6 Dec 2000 03:09:49 +0000 (03:09 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 6 Dec 2000 03:09:49 +0000 (20:09 -0700)
        * builtins.c (expand_builtin_setjmp_setup): Set
        current_function_has_nonlocal_label.

From-SVN: r38060

gcc/ChangeLog
gcc/builtins.c

index d32d014..bc09584 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec  5 20:09:14 2000  Jeffrey A Law  (law@cygnus.com)
+
+       * builtins.c (expand_builtin_setjmp_setup): Set
+       current_function_has_nonlocal_label.
+
 2000-12-05  Neil Booth  <neilb@earthling.net>
 
         * cppfiles.c (stack_include_file): Push zero-length buffers
index d6fa5bb..cbf9acd 100644 (file)
@@ -511,6 +511,10 @@ expand_builtin_setjmp_setup (buf_addr, receiver_label)
   /* Tell optimize_save_area_alloca that extra work is going to
      need to go on during alloca.  */
   current_function_calls_setjmp = 1;
+
+  /* Set this so all the registers get saved in our frame; we need to be
+     able to copy the saved values for any registers from frames we unwind. */
+  current_function_has_nonlocal_label = 1;
 }
 
 /* Construct the trailing part of a __builtin_setjmp call.