[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Probably a bug
From: |
Richard Urwin |
Subject: |
Re: [avr-gcc-list] Probably a bug |
Date: |
Tue, 8 Jun 2004 18:24:09 +0100 |
User-agent: |
KMail/1.5.3 |
On Tuesday 08 Jun 2004 6:10 pm, Shahpour Moavenat wrote:
> Hi all,
>
> Below the email is the source file which problem occurs in.
> The problem is in function putchar1, the while loop is translated to
>
> while (tx_counter1 == TX_BUFFER_SIZE1);
>
> from .lst file:
> 153 .LM12:
> 154 006a 8091 0000 lds r24,tx_counter1
> 155 .L5:
> 156 006e 8830 cpi r24,lo8(8)
> 157 0070 F1F3 breq .L5
You need to mark tx_counter1 as volatile:
volatile unsigned char tx_counter1;
--
Richard Urwin