This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/52080] Stores to bitfields introduce a store-data-race on adjacent data
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Feb 2012 10:25:21 +0000
- Subject: [Bug target/52080] Stores to bitfields introduce a store-data-race on adjacent data
- Auto-submitted: auto-generated
- References: <bug-52080-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52080
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-01 10:25:21 UTC ---
SPARC64 also can do 32bit loads/stores as the following testcase shows:
struct x {
long a;
unsigned int lock;
unsigned int full;
};
void
wrong(struct x *ptr)
{
ptr->full = 1;
}
here we simply use a 32bit store.