On Saturday 26 January 2008 06:24, Joerg Wunsch wrote:
> Gre7g Luterman <[EMAIL PROTECTED]> wrote:
> > IIRC, it is actually the responsibility of the called
> > function (the callee) to clear r25 when returning an
> > unsigned byte.  The caller can presume this to be
> > clear already.
>
> You're right, it's a typo and should really read "callee".

An example:

  extern char Slave (void);
  int Master (void)
  {
    return Slave() + 1;
  }

Here the Master() extends char to int before addition.
This is match to common 'integral promotion'.
I have look all Avr-gcc releases since 3.3.6: anywhere
the Master() does it.

Note, in older Avr-gcc the Slave() does it also.

Regards,
Dmitry.



_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to