[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #50987] Not all registers need to be declared volati
From: |
anonymous |
Subject: |
[avr-libc-dev] [bug #50987] Not all registers need to be declared volatile |
Date: |
Sat, 23 Dec 2017 05:33:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #3, bug #50987 (project avr-libc):
As Ambroz explained, removing volatile is only safe if there are no (side)
effects. This case IMHO never happens (each register is there for a specific
purpose/effect). The registers with the least hardware side effects probably
are the GPIOn registers, which are effectively like global variables. When I
use them, it's usually in ISRs, thus, they must be declared volatile.
Voting to close the bug as wontfix.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50987>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #50987] Not all registers need to be declared volatile,
anonymous <=