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

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

Re: [avr-gcc-list] Unused registers saves/restores ?


From: eric
Subject: Re: [avr-gcc-list] Unused registers saves/restores ?
Date: Mon, 9 Jun 2003 21:12:55 GMT

> Hello all,
> 
> Compiler:
>       avr-gcc --version
>       avr-gcc (GCC) 3.3.1 20030519 (prerelease)
> 
> Programm:
>       typedef struct { long a; int b; } lo_in;
> 
>       lo_in foo_lo_in (void)
>       {
>           lo_in x;
>           x.a = 1;
>           x.b = 2;
>           return x;
>       };
> 
> Compile with:
>       avr-gcc -O3 -S foo_lo_in.c
> 
> Result: r2,3,4,7,... not used, but saved/restored:
> 

Do you get the same with other optimizations? Including -Os?

Eric




reply via email to

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