Fix tsan tests.
Maxim Ostapenko
m.ostapenko@partner.samsung.com
Tue Dec 10 09:48:00 GMT 2013
Hello,
From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410#c1 issue:
> BTW, the tsan.exp tests don't seem to be as cheap as was claimed
during the patch
> submission, I'd prefer to at least throttle the > torture options
down to say -O0
> and -O2 rather than so many different variants when the tests are
really small and
> optimizations don't really affect them that much if at all.
I've fixed tsan tests to be executed only with '-O0' and '-O2' options.
The number of tests executed is decreased from 272 to 68.
Ok to commit?
-Maxim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thread-patch.diff
Type: text/x-patch
Size: 1602 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131210/14301667/attachment.bin>
-------------- next part --------------
2013-12-10 Max Ostapenko <m.ostapenko@partner.samsung.com>
* c-c++-common/tsan/thread_leak2.c: `dg-skip-if' removed.
* gcc-dg/tsan/tsan.exp: Run only with '-O0' and '-O2' options.
* g++-dg/tsan/tsan.exp: Run only with '-O0' and '-O2' options.
More information about the Gcc-patches
mailing list