This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New tsan tests.
- From: Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>
- To: Yury Gribov <y dot gribov at samsung dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Maxim Ostapenko <m dot ostapenko at partner dot samsung dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Slava Garbuzov <v dot garbuzov at samsung dot com>, Evgeny Gavrin <e dot gavrin at samsung dot com>, Konstantin Serebryany <kcc at gcc dot gnu dot org>
- Date: Wed, 11 Dec 2013 15:21:32 +0400
- Subject: Re: New tsan tests.
- Authentication-results: sourceware.org; auth=none
- References: <52A83A93 dot 7020903 at partner dot samsung dot com> <20131211102352 dot GD892 at tucnak dot redhat dot com> <52A846F2 dot 4060907 at samsung dot com> <20131211110719 dot GE892 at tucnak dot redhat dot com> <52A848AA dot 6070201 at samsung dot com>
What's wrong with C++? :)
Upstream we have 16 .c tests and 106 .cc tests in
compiler-rt/lib/tsan/lit_tests.
We typically prefer .cc because imo C++ is a better language (even
when using what looks like the C subset).
But we need some .c tests to make sure that tsan still works w/o C++ run-time.
--kcc
On Wed, Dec 11, 2013 at 3:12 PM, Yury Gribov <y.gribov@samsung.com> wrote:
>> I guess I can live with it as is, just was wondering why the tests
>> were written so carelessly that when they don't really need to test
>> any C++ features they are still written in C++.
>
> Adding Kostya to comment.
>
> -Y