This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,AVR]: Fix PR50063 GCC does not support FP = SP


2012/2/21 Richard Henderson <rth@redhat.com>:
> On 02/21/12 09:08, Georg-Johann Lay wrote:
>> Â Â Â PR rtl-optimization/50063
>> Â Â Â * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
>> Â Â Â and 2 (8-bit SP) in operand 2.
>> Â Â Â * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
>> Â Â Â setup to use movhi_sp_r instead of vanilla move to write SP.
>> Â Â Â Adjust REG_CFA notes to superseed unspec.
>> Â Â Â (expand_epilogue): Adjust epilogue setup to use read_sp instead
>> Â Â Â of vanilla move.
>> Â Â Â As function body might contain CLI or SEI: Use irq_state 0 (IRQ
>> Â Â Â known to be off) only with TARGET_NO_INTERRUPTS. Never use
>> Â Â Â irq_state 1 (IRQ known to be on) here.
>
> The CFA bits in avr_prologue_setup_frame look good.
> I'll let Denis or Eric review the movhi_sp_r change.
>

Approved.

Denis.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]