diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2007-09-07 16:46:23 +0000 |
---|---|---|
committer | Roman Zippel <zippel@gcc.gnu.org> | 2007-09-07 16:46:23 +0000 |
commit | 215161e20f2d87926fe0778cea032de8dee3c6bd (patch) | |
tree | 341f78f63c5c8a8cca70354c3fe2ccdc86964074 /gcc/config/m68k | |
parent | 6ef9a246ce971efba493e86ffdba2b49f5045fb9 (diff) | |
download | gcc-215161e20f2d87926fe0778cea032de8dee3c6bd.zip gcc-215161e20f2d87926fe0778cea032de8dee3c6bd.tar.gz gcc-215161e20f2d87926fe0778cea032de8dee3c6bd.tar.bz2 |
function.h (struct function): Rename calls_unwind_init to saves_all_registers.
* function.h (struct function): Rename calls_unwind_init
to saves_all_registers.
(current_function_saves_all_registers): Renamed from
current_function_calls_unwind_init.
* reload1.c (reload): Set current_function_saves_all_registers.
* except.c (expand_builtin_unwind_init): Likewise.
* config/m68k/m68k.c (m68k_save_reg): Use
current_function_saves_all_registers to save pic register.
From-SVN: r128248
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r-- | gcc/config/m68k/m68k.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index cd7f493..8f7aa34 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -780,9 +780,7 @@ m68k_save_reg (unsigned int regno, bool interrupt_handler) { if (flag_pic && regno == PIC_REG) { - /* A function that receives a nonlocal goto must save all call-saved - registers. */ - if (current_function_has_nonlocal_label) + if (current_function_saves_all_registers) return true; if (current_function_uses_pic_offset_table) return true; |