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

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

Re: [avr-gcc-list] COMPILER Frame pointer bug!!!


From: Christoph Plattner
Subject: Re: [avr-gcc-list] COMPILER Frame pointer bug!!!
Date: Mon, 19 Nov 2001 10:40:43 +0100

Again, the swapping here is not necessary ! After the interrupt is
enabled
again (restore SREG), it is guaranteed, that on instruction of the
current
code sequence is executed. So the SP_L writing is done, before any
interrupt
occurs.

With friendly regards
Christoph P.


Dmitry wrote:
> 
> Fellows!
> 
> The code is Ok, but it seems to me, that I got an interrupt on the SP update.
> 
> But anyway I think that lines out __SREG__,__tmp_reg__ and out __SP_L__,r28 
> should be swapped.
> ... also, I think that stack pointer should be latched by hardware during 
> read/write operations.
> 
> Thanks for all who replied
> 
> Dmitry
> 
> > At 21:26 17/11/2001 +0300, dimmy wrote:
> > >Fellows,
> > >
> > >I found  strange avr-gcc behaviour.
> > >
> > >If you declare a function with a variable number of arguments or the
> > >number of arguments is over 18 (actually, total number of bytes, required
> > >for arguments) or you allocate over 18 bytes inside the function, then
> > >avr-gcc disables interrupts on enter to the function and does not enable
> > >them anymore.
> > >
> > >This is valid only in case, when frame pointer cannot be eliminated or
> > >when no optimization enabled.
> > <snip>
> >
> >
> 
> *********************************************************************
>    ("`-''-/").___..--''"`-._     (\       Dimmy the Wild      UA1ACZ
>     `6_ 6  )   `-.  (     ).`-.__.`)      Enterprise Information Sys
>     (_Y_.)'  ._   )  `._ `. ``-..-'       Nevsky prospekt,   20 / 44
>   _..`--'_..-_/  /--'_.' ,'               Saint Petersburg,   Russia
>  (il),-''  (li),'  ((!.-'                 +7 (812) 314-8860, 5585314
> *********************************************************************
> 
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list

-- 
  +--------V--------+   address@hidden
  |  A L C A T E L  |   -----------------------------
  +-----------------+   Phone: +43 1 27722 3706 
         T A S          Fax:   +43 1 27722 3955



reply via email to

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