[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention
From: |
E. Weddington |
Subject: |
Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention |
Date: |
Wed, 14 Jul 2004 10:44:08 -0600 |
On 14 Jul 2004 at 18:06, Joerg Wunsch wrote:
> "Martin Krüger " <address@hidden> wrote:
>
> > avr-gcc -c -Os test.c (without optimization the code seems to be ok)
> >
> > avr-objdump -D test.o
>
> You could have called avr-gcc with -S directly instead. ;-)
>
> > The we will see the call to testfunc32
> >
> > mov r25, r19
> > mov r24, r18
> > mov r23, r17
> > mov r22, r16
> > rcall .+0
>
> That's quite OK.
>
> > This code is executed after all the other function-calls.
> > Any of these could have modified the values of r19,r18
>
> Sure, but since they are not used again afterwards, this is not a
> problem.
>
> However, I can see a problem. If I add something like
>
> unsigned long foo;
>
> ....
>
> testfunc(...)
> {
> ...
> foo = d;
> }
>
> it still doesn't save r18/r19. In that case, I think it /is/ a bug.
>
> Please submit a GCC bug report for this (but use my addition, since it
> makes the bug obvious).
>
Joerg,
Do we know if this is a regression? If we can discover that this is a
regression then we're more likely to get a fix in say 3.4.2 instead of having
to wait until 3.5.
Eric
- Antworten: Re: [avr-gcc-list] Problem with the calling convention, Martin Krüger , 2004/07/14
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention, Joerg Wunsch, 2004/07/14
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention,
E. Weddington <=
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention, Joerg Wunsch, 2004/07/14
- [avr-gcc-list] SRAM chip fopr STK501, Douglas Dotson, 2004/07/14
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention, Dmitry K., 2004/07/15
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention, E. Weddington, 2004/07/19
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention, Dmitry K., 2004/07/17
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention, E. Weddington, 2004/07/19
- Re: Antworten: Re: [avr-gcc-list] Problem with the calling convention, E. Weddington, 2004/07/19