avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] ATmega2560 and r30/31 save in function prologue


From: Anatoly Sokolov
Subject: Re: [avr-gcc-list] ATmega2560 and r30/31 save in function prologue
Date: Sat, 3 May 2008 14:28:25 +0400

> ...
> 
> foo() is don't call other functions and leaf_function_p () all return 1. ISR
> is call foo() but leaf_function_p () surprising change return value acros
> calls.

Comment from static arm.c (arm_get_frame_offsets):
  /* We need to know if we are a leaf function.  Unfortunately, it
     is possible to be called after start_sequence has been called,
     which causes get_insns to return the insns for the sequence,
     not the function, which will cause leaf_function_p to return
     the incorrect result.

     to know about leaf functions once reload has completed, and the
     frame size cannot be changed after that time, so we can safely
     use the cached value.  */

Anatoly.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]