[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Inconsisten behaviour of switch statement
From: |
Schwichtenberg, Knut |
Subject: |
RE: [avr-gcc-list] Inconsisten behaviour of switch statement |
Date: |
Tue, 27 Mar 2007 10:26:47 +0200 |
Hi,
> -----Original Message-----
> From: Joerg Wunsch [mailto:address@hidden
> Sent: Tuesday, March 27, 2007 9:51 AM
> To: address@hidden
> Cc: Schwichtenberg, Knut
> Subject: Re: [avr-gcc-list] Inconsisten behaviour of switch statement
>
> Yes, but this is technically OK. The volatile variable is read
> exactly once, and then the decision is based on the value cached in
> register rr24/25. This is different from the behaviour you've been
> describing in the initial posting (which I'd really consider erroneous
> but could not reproduce so far).
At the meoment of reading Jörgs reply I wanted to become invisible by shame. I
watched my original file and saw that playing around with different compares
(if-than-else vs. switch) left the if-than-else alive and I comment-out the
switch :-(.
Conclusion: Monday is not my day especially after start of DST.
Cheers
Knut
- Re: [avr-gcc-list] Inconsisten behaviour of switch statement, (continued)
- Re: [avr-gcc-list] Inconsisten behaviour of switch statement, Preston Wilson, 2007/03/26
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Eric Weddington, 2007/03/26
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Schwichtenberg, Knut, 2007/03/26
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Eric Weddington, 2007/03/26
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Dave Hansen, 2007/03/26
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Eric Weddington, 2007/03/26
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Paulo Marques, 2007/03/26
- Re: [avr-gcc-list] Inconsisten behaviour of switch statement, Joerg Wunsch, 2007/03/27
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Schwichtenberg, Knut, 2007/03/27
- Re: [avr-gcc-list] Inconsisten behaviour of switch statement, Joerg Wunsch, 2007/03/27
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement,
Schwichtenberg, Knut <=
- RE: [avr-gcc-list] Inconsisten behaviour of switch statement, Eric Weddington, 2007/03/27