[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] COMPILER Frame pointer bug!!!
From: |
Marek Michalkiewicz |
Subject: |
Re: [avr-gcc-list] COMPILER Frame pointer bug!!! |
Date: |
Mon, 19 Nov 2001 10:26:44 +0100 (CET) |
> I found strange avr-gcc behaviour.
Don't panic! :)
> in __tmp_reg__,__SREG__ ; this saves the I flag
> cli ; <=====
> DISABLE INTERRUPTS
> out __SP_H__,r29
> out __SREG__,__tmp_reg__ ; this restores its previous state
> out __SP_L__,r28 ; interrupt can come after this instruction
> And no 'sei' instruction in the function body!!!
That would be wrong, as the function could be called with interrupts
already disabled, and shouldn't enable them in this case.
Hope this helps,
Marek
- [avr-gcc-list] COMPILER Frame pointer bug!!!, (continued)
- Re: [avr-gcc-list] COMPILER Frame pointer bug!!!, Larry Barello, 2001/11/18
- Re: [avr-gcc-list] COMPILER Frame pointer bug!!!, Christoph Plattner, 2001/11/18
- Re: [avr-gcc-list] COMPILER Frame pointer bug!!!, Bernd Felsche, 2001/11/18
- Re: [avr-gcc-list] COMPILER Frame pointer bug!!!, Christoph Plattner, 2001/11/18
- Re: [avr-gcc-list] COMPILER Frame pointer bug!!!, Bernd Felsche, 2001/11/18
- Re: [avr-gcc-list] COMPILER Frame pointer bug!!!,
Marek Michalkiewicz <=