This is the mail archive of the gcc-patches@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]

Re: [Patch, toplevel/config] fix tls.m4 configure race condition (bootstrap/PR43170)


On 06/06/2010 02:58 PM, IainS wrote:
Although this is reported against darwin, it affects all emulated TLS
targets.
there is a race condition that causes sporadic incorrect determination
of tls capability,
it has been discussed in detail on the PR thread
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43170).

- static int *a_in_other_thread; + int *a_in_other_thread; + int *a_in_main_thread;

No reason to make this global.

Patch okay if you just move the "a_in_main_thread = &a" assignment for all branches. I can take care of syncing to src.

Paolo


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