This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tsan] ThreadSanitizer instrumentation part
Right -- I found the same thing, it is the ivopt that resets it -- the
IV opt pass should have a TODO_update_address_taken.
thanks,
David
On Thu, Nov 1, 2012 at 2:07 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Thu, Nov 01, 2012 at 01:57:40PM -0700, Xinliang David Li wrote:
>> I looked at it pretty late in the pipeline -- during cfgexpand and I
>> had specified -O2 in the command line.
>
> That was too late, ivopts pass (after pre where tsan pass was put around)
> marks it TREE_ADDRESSABLE again, because it creates IV with initial
> value &a[0].
>
> Jakub