This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47409] volatile struct member bug
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jan 2011 00:00:38 +0000
- Subject: [Bug c/47409] volatile struct member bug
- Auto-submitted: auto-generated
- References: <bug-47409-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47409
--- Comment #5 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-01-25 00:00:37 UTC ---
I think we should respect volatile on fields, and not use memcpy/memmove
for assignment of volatile structs or structs with volatile fields (at
least not for the parts with those fields; it's probably OK, but not
worthwhile, for the non-volatile bits of the structs).