[Bug middle-end/59448] Code generation doesn't respect C11 address-dependency
algrant at acm dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 17 22:22:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59448
--- Comment #13 from algrant at acm dot org ---
I see what you mean - there is a race if threadB reads the data when the
flag is not set, i.e. in the case when the read value is never used.
Moving the read of data after the test (as in the fragment in comment 4)
would fix the race.
More information about the Gcc-bugs
mailing list