Commit 9ed74235 by Anatoly Sokolov Committed by Anatoly Sokolov

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
parent abab57ef
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
......
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment