address review comments (issue5610048)

2012-02-02 Thread Dmitriy Vyukov
Index: gcc/doc/invoke.texi === --- gcc/doc/invoke.texi (revision 183833) +++ gcc/doc/invoke.texi (working copy) @@ -306,6 +306,7 @@ -fdump-tree-ssa@r{[}-@var{n}@r{]} -fdump-tree-pre@r{[}-@var{n}@r{]} @gol -fdump-tree-ccp@r{[}-@var{n}

[google] Backport ThreadSanitizer instrumentation pass from google/main to google/gcc-4_6 (issue5610048)

2012-02-01 Thread Dmitriy Vyukov
This is for google/gcc-4_6 branch. Backport ThreadSanitizer (tsan) instrumentation pass from google/main. * tree-tsan.c: New file. * tree-tsan.h: New file. * tree-pass.h: Add tsan pass. * passes.c: Add tsan pass. * toplev.c (compile_file): Call tsan_finish_fi

Address the comments (issue5492055)

2011-12-16 Thread Dmitriy Vyukov
: gcc/ChangeLog.google-main === --- gcc/ChangeLog.google-main (revision 182401) +++ gcc/ChangeLog.google-main (working copy) @@ -1,3 +1,7 @@ +2011-12-16 Dmitriy Vyukov + +* tree-tsan.c (tsan_ignore): Add check for thunks

Ignore thunks in ThreadSanitizer pass (issue5492055)

2011-12-16 Thread Dmitriy Vyukov
ame = ""; Index: gcc/ChangeLog.google-main === --- gcc/ChangeLog.google-main (revision 182401) +++ gcc/ChangeLog.google-main (working copy) @@ -1,3 +1,8 @@ +2011-12-16 Dmitriy Vyukov + +Ignore thunks in Thread

Fix compiler warnings in ThreadSanitizer tests (issue5483046)

2011-12-12 Thread Dmitriy Vyukov
This is for google-main branch. Fix compiler warnings in ThreadSanitizer tests. Index: gcc/testsuite/ChangeLog.google-main === --- gcc/testsuite/ChangeLog.google-main (revision 182235) +++ gcc/testsuite/ChangeLog.google-main (working

Fix flags for edges from/to entry/exit basic blocks (issue5486043)

2011-12-12 Thread Dmitriy Vyukov
Fix flags for edges from/to entry/exit basic blocks. W/o this patch I hit internal asserts when trying to split the edge from entry block. Index: gcc/cgraphunit.c === --- gcc/cgraphunit.c(revision 182237) +++ gcc/cgraphunit.c(

Fix ThreadSanitizer pass required properties (issue5477053)

2011-12-09 Thread Dmitriy Vyukov
=== --- gcc/ChangeLog.google-main (revision 182099) +++ gcc/ChangeLog.google-main (working copy) @@ -1,3 +1,8 @@ +2011-12-09 Dmitriy Vyukov + + Fix ThreadSanitizer pass required properties. +* gcc/tree-tsan.c (pass_tsan): Replace

Fix a bug in ThreadSanitizer pass (issue5448109)

2011-12-05 Thread Dmitriy Vyukov
oes not live in memory -> no possibility of races. */ Index: gcc/ChangeLog.google-main === --- gcc/ChangeLog.google-main (revision 182014) +++ gcc/ChangeLog.google-main (working copy) @@ -1,3 +1,8 @@ +2011-12-05 Dmitriy Vyukov

Run ThreadSanitizer test only on x86/linux (issue5437087)

2011-11-30 Thread Dmitriy Vyukov
-main (working copy) @@ -1,3 +1,11 @@ +2011-11-30 Dmitriy Vyukov + + Add directives to run ThreadSanitizer tests + only on i386/x86_64-*-linux targets. + * gcc/testsuite/gcc.dg/tsan-ignore.c: Add the directives. + * gcc/testsuite/gcc.dg/tsan-stack.c: Add the directives

use cgraph_node_for_asm + add per-translation-unit constructors + synch repo (issue5303083)

2011-11-13 Thread Dmitriy Vyukov
} The run-time library provides __tsan_handle_mop function, definitions of __tsan_shadow_stack and __tsan_thread_ignore variables, and intercepts synchronization related functions. 2011-11-14 Dmitriy Vyukov * gcc/doc/invoke.texi: * gcc/tree-tsan.c (enum tsan

remove commented out code (issue5303083)

2011-11-08 Thread Dmitriy Vyukov
Remove commented out code. The patch is for google/main branch. 2011-11-08 Dmitriy Vyukov * gcc/doc/invoke.texi: * gcc/tree-tsan.c (enum tsan_ignore_type): (struct bb_data): (struct mop_desc): (struct tsan_ignore_desc): (build_var_decl

fix crashes (issue5303083)

2011-11-08 Thread Dmitriy Vyukov
Fix crashes during instrumentation. The patch is for google/main branch. 2011-11-08 Dmitriy Vyukov * gcc/doc/invoke.texi: * gcc/tree-tsan.c (enum tsan_ignore_type): (struct bb_data): (struct mop_desc): (struct tsan_ignore_desc): (build_var_decl

fix review comments (issue5303083)

2011-11-03 Thread Dmitriy Vyukov
Fixes after davidxl review. The patch is for google/main branch. 2011-11-03 Dmitriy Vyukov * gcc/doc/invoke.texi: * gcc/tree-tsan.c (enum tsan_ignore_type): (struct bb_data): (struct mop_desc): (struct tsan_ignore_desc): (lookup_name

fixes after the review (issue5303083)

2011-10-31 Thread Dmitriy Vyukov
Fixes after davidxl review. The patch is for google/main branch. 2011-10-31 Dmitriy Vyukov * gcc/doc/invoke.texi: * gcc/tree-tsan.c (enum tsan_ignore_type): (struct bb_data): (struct mop_desc): (struct tsan_ignore_desc): (lookup_name

[google] ThreadSanitizer instrumentation pass (issue5303083)

2011-10-28 Thread Dmitriy Vyukov
ow_stack and __tsan_thread_ignore variables, and intercepts synchronization related functions. 2011-10-28 Dmitriy Vyukov * gcc/doc/invoke.texi: * gcc/tree-tsan.c (enum tsan_ignore_e): (enum bb_state_e): (struct bb_data_t): (struct mop_desc_t):