This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34351] New: Please get us the "volatile register" warning back
- From: "j at uriah dot heep dot sax dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2007 19:32:34 -0000
- Subject: [Bug c/34351] New: Please get us the "volatile register" warning back
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Microcontroller programmers tend to fall into the trap of trying to
bind a variable to a CPU register, and declare it "volatile" so they
could e.g. use it to communicate between the main context and an ISR.
Previous GCC versions issued a warning:
volatile register variables don't work as you might wish
This warning has been removed without making volatile register variables
work the way an innocent programmer would assume.
Please re-enable that warning at least for -Wall and/or -Wextra.
--
Summary: Please get us the "volatile register" warning back
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: j at uriah dot heep dot sax dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34351