This is for google-main branch. Fix ThreadSanitizer pass required properties. Turned out that PROP_gimple_lomp is not always present.
Index: gcc/tree-tsan.c =================================================================== --- gcc/tree-tsan.c (revision 182099) +++ gcc/tree-tsan.c (working copy) @@ -1111,7 +1111,7 @@ NULL, /* next */ 0, /* static_pass_number */ TV_NONE, /* tv_id */ - PROP_trees | PROP_cfg, /* properties_required */ + PROP_ssa | PROP_cfg, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ Index: gcc/ChangeLog.google-main =================================================================== --- gcc/ChangeLog.google-main (revision 182099) +++ gcc/ChangeLog.google-main (working copy) @@ -1,3 +1,8 @@ +2011-12-09 Dmitriy Vyukov <dvyu...@google.com> + + Fix ThreadSanitizer pass required properties. + * gcc/tree-tsan.c (pass_tsan): Replace PROP_trees with PROP_ssa. + 2011-12-05 Dmitriy Vyukov <dvyu...@google.com> Fix taking address of SSA_NAME in ThreadSanitizer pass. -- This patch is available for review at http://codereview.appspot.com/5477053