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

r181591 - in /branches/google/main/gcc: ChangeL...


Author: dvyukov
Date: Mon Nov 21 19:04:00 2011
New Revision: 181591

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181591
Log:
Introduce a new option -ftsan which enables
ThreadSanitizer (TSan), a data race detector:
http://code.google.com/p/data-race-test/.
* gcc/Makefile.in: Add tree-tsan.c.
* gcc/common.opt: Add -ftsan, -ftsan-ignore flags.
* gcc/doc/invoke.texi: Document the new flags.
* gcc/passes.c: Add tsan pass.
* gcc/tree-pass.h: Add tsan pass.
* gcc/toplev.c (compile_file): Call tsan_finish_file.
* gcc/tree-tsan.c: New file.
* gcc/tree-tsan.h: New file.
* gcc/testsuite/gcc.dg/tsan.h: New file.
* gcc/testsuite/gcc.dg/tsan-mop.c: New file.
* gcc/testsuite/gcc.dg/tsan-stack.c: New file.
* gcc/testsuite/gcc.dg/tsan-ignore.c: New file.
* gcc/testsuite/gcc.dg/tsan-ignore.h: New file.
* gcc/testsuite/gcc.dg/tsan-ignore.ignore: New file.


Added:
    branches/google/main/gcc/testsuite/gcc.dg/tsan-ignore.c   (with props)
    branches/google/main/gcc/testsuite/gcc.dg/tsan-ignore.h   (with props)
    branches/google/main/gcc/testsuite/gcc.dg/tsan-ignore.ignore
    branches/google/main/gcc/testsuite/gcc.dg/tsan-mop.c   (with props)
    branches/google/main/gcc/testsuite/gcc.dg/tsan-stack.c   (with props)
    branches/google/main/gcc/testsuite/gcc.dg/tsan.h   (with props)
    branches/google/main/gcc/tree-tsan.c   (with props)
    branches/google/main/gcc/tree-tsan.h   (with props)
Modified:
    branches/google/main/gcc/ChangeLog.google-main
    branches/google/main/gcc/Makefile.in
    branches/google/main/gcc/common.opt
    branches/google/main/gcc/doc/invoke.texi
    branches/google/main/gcc/passes.c
    branches/google/main/gcc/toplev.c
    branches/google/main/gcc/tree-pass.h

Propchange: branches/google/main/gcc/testsuite/gcc.dg/tsan-ignore.c
            ('svn:eol-style' added)

Propchange: branches/google/main/gcc/testsuite/gcc.dg/tsan-ignore.h
            ('svn:eol-style' added)

Propchange: branches/google/main/gcc/testsuite/gcc.dg/tsan-mop.c
            ('svn:eol-style' added)

Propchange: branches/google/main/gcc/testsuite/gcc.dg/tsan-stack.c
            ('svn:eol-style' added)

Propchange: branches/google/main/gcc/testsuite/gcc.dg/tsan.h
            ('svn:eol-style' added)

Propchange: branches/google/main/gcc/tree-tsan.c
            ('svn:eol-style' added)

Propchange: branches/google/main/gcc/tree-tsan.h
            ('svn:eol-style' added)



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