diff options
author | Anatoly Sokolov <aesok@post.ru> | 2009-09-23 22:44:34 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2009-09-23 22:44:34 +0400 |
commit | 9ed7423543f3d321058eefc527972d5db7ce3b83 (patch) | |
tree | 5a5840116a1ebfd863ce064423033c98eb601a59 | |
parent | abab57efc6cf2982fd362638dfdf726830334d3b (diff) | |
download | gcc-9ed7423543f3d321058eefc527972d5db7ce3b83.zip gcc-9ed7423543f3d321058eefc527972d5db7ce3b83.tar.gz gcc-9ed7423543f3d321058eefc527972d5db7ce3b83.tar.bz2 |
avr.c (avr_regs_to_save): Use current_function_is_leaf instead of cfun->machine->is_leaf.
* config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
instead of cfun->machine->is_leaf.
* config/avr/avr.h (machine_function): Remove is_leaf field.
From-SVN: r152093
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 5 | ||||
-rw-r--r-- | gcc/config/avr/avr.h | 3 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 18fe6df..41493dc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-09-23 Anatoly Sokolov <aesok@post.ru> + + * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf + instead of cfun->machine->is_leaf. + * config/avr/avr.h (machine_function): Remove is_leaf field. + 2009-09-23 Jakub Jelinek <jakub@redhat.com> PR debug/41439 diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 2c562e9..76df476 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -393,9 +393,6 @@ avr_regs_to_save (HARD_REG_SET *set) int int_or_sig_p = (interrupt_function_p (current_function_decl) || signal_function_p (current_function_decl)); - if (!reload_completed) - cfun->machine->is_leaf = leaf_function_p (); - if (set) CLEAR_HARD_REG_SET (*set); count = 0; @@ -414,7 +411,7 @@ avr_regs_to_save (HARD_REG_SET *set) if (fixed_regs[reg]) continue; - if ((int_or_sig_p && !cfun->machine->is_leaf && call_used_regs[reg]) + if ((int_or_sig_p && !current_function_is_leaf && call_used_regs[reg]) || (df_regs_ever_live_p (reg) && (int_or_sig_p || !call_used_regs[reg]) && !(frame_pointer_needed diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index 53e20f9..0927e39 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -841,9 +841,6 @@ mmcu=*:-mmcu=%*}" This is added to the cfun structure. */ struct GTY(()) machine_function { - /* 'true' - if the current function is a leaf function. */ - int is_leaf; - /* 'true' - if current function is a naked function. */ int is_naked; |