[Bug c++/33068] volatile struct bit fields not treated as volatile
Steve at Zook dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 14 17:28:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list