This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: FDO patch -- make ic related vars TLS if target allows
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Xinliang David Li <davidxl at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jan Hubicka <hubicka at ucw dot cz>
- Date: Tue, 17 May 2011 06:39:18 -0700
- Subject: Re: FDO patch -- make ic related vars TLS if target allows
- References: <BANLkTi=Quwv2f2UHV9TDRxrU-E0W8Hadog@mail.gmail.com>
On Wed, Apr 27, 2011 at 10:54 AM, Xinliang David Li <davidxl@google.com> wrote:
> Hi please review the trivial patch below. It reduces race conditions
> in value profiling. Another trivial change (to initialize
> function_list struct) is also included.
>
> Bootstrapped and regression tested on x86-64/linux.
>
> Thanks,
>
> David
>
>
> 2011-04-27 ?Xinliang David Li ?<davidxl@google.com>
>
> ? ? ? ?* tree-profile.c (init_ic_make_global_vars): Set
> ? ? ? ?tls attribute on ic vars.
> ? ? ? ?* coverage.c (coverage_end_function): Initialize
> ? ? ? ?function_list with zero.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49014
--
H.J.