[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Inline vs. ? : operator
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Inline vs. ? : operator |
Date: |
Sat, 27 Mar 2010 18:11:11 +0100 (MET) |
Szikra Istvan <address@hidden> wrote:
> /**
> Category: optimization miss
No, I think that even qualifies as a genuine bug: in your case, a
pointer qualified as "volatile" is being fetched twice, first by the
CBI instruction, and a second time by the IN instruction. For an IO
register, this can cause unwanted side effects (e.g. fetch the next
byte from the UART).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)