public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/34351]  New: Please get us the "volatile register" warning back
@ 2007-12-05 19:32 j at uriah dot heep dot sax dot de
  2007-12-09  2:06 ` [Bug c/34351] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: j at uriah dot heep dot sax dot de @ 2007-12-05 19:32 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-26 14:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-05 19:32 [Bug c/34351] New: Please get us the "volatile register" warning back j at uriah dot heep dot sax dot de
2007-12-09  2:06 ` [Bug c/34351] " pinskia at gcc dot gnu dot org
2007-12-09  7:37 ` j at uriah dot heep dot sax dot de
2007-12-13 13:04 ` manu at gcc dot gnu dot org
2008-02-26 14:05 ` manu at gcc dot gnu dot org
2008-02-26 14:07 ` manu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).