From dfb2c798ab94f7a4356b9ac9fc07e4b82d164de1 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Wed, 6 Dec 2000 03:09:49 +0000 Subject: [PATCH] builtins.c (expand_builtin_setjmp_setup): Set current_function_has_nonlocal_label. * builtins.c (expand_builtin_setjmp_setup): Set current_function_has_nonlocal_label. From-SVN: r38060 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d32d01426f15..bc095849a482 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * cppfiles.c (stack_include_file): Push zero-length buffers diff --git a/gcc/builtins.c b/gcc/builtins.c index d6fa5bb1f0b1..cbf9acd55dea 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -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. -- 2.47.2