Optimization of conditional access to globals: thread-unsafe?

Samuel Tardieu sam@rfc1149.net
Sat Oct 27 13:59:00 GMT 2007


On 27/10, Florian Weimer wrote:

| (I can't reproduce the conditional store with my GCC 4.2 installation,
| though.)

You need "-O -fno-inline" to trigger it on this particular example
(you don't need "-fno-inline" if you put "Lock" in a separate package).



More information about the Gcc mailing list