This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33068] volatile struct bit fields not treated as volatile
- From: "Steve at Zook dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2007 17:28:30 -0000
- Subject: [Bug c++/33068] volatile struct bit fields not treated as volatile
- References: <bug-33068-7493@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from Steve at Zook dot com 2007-08-14 17:28 -------
Created an attachment (id=14059)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14059&action=view)
Test C or C++ code fragment
For bad code compile: m68k-elf-gcc -c -save-temps -x c++ test.c
or: m68k-elf-g++ -c -save-temps test.c
note code for ProcedureBitStructVolatile() and
ProcedureBitStructVolatileConst()
for good code compile: m68k-elf-gcc -c -save-temps test.c
or: m68k-elf-g++ -c -save-temps -x c test.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33068