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

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

Re: [avr-gcc-list] avr-gcc bug while initialising variables


From: Dmitry K.
Subject: Re: [avr-gcc-list] avr-gcc bug while initialising variables
Date: Wed, 4 Aug 2004 11:58:06 +1100
User-agent: KMail/1.5

As Emil wrote:
> int
> main( void )
> {
>   unsigned char   s[8] = { 0x6E, 0x4E, 0xF7, 0x07, 0x41, 0xFA, 0xB9, 0xD4
> }; unsigned char   d[8] = { 0x1B, 0x55, 0x7C, 0xE6, 0x54, 0xAC, 0x54, 0xDB
> }; return 0;
> }
>
> Compile it with version 3.4.0 and the following flags:
> CPFLAGS = -mmcu=atmega16 -g -O3 -funsigned-char -funsigned-bitfields
> -fpack-struct -fshort-enums -Wall -W
>
...
>
> For the second initialisation there is a "ldi r24, 0x08" instruction
> missing from the code.

Yes, 3.4.1 --> the same error.
3.3.4 --> OK.



reply via email to

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