This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33068] volatile struct bit fields not treated as volatile



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]