6 Commits

Author SHA1 Message Date
Mark Wielaard
f2369cbf31 drd/tests/std_thread[2].cpp rename execute_native_thread_routine.
Both tests define a execute_native_thread_routine function that we
took from libstdc++. Unfortunately because of a bug this function
is not local in some versions of libstdc++ and so our similar named
function will clash when trying to link.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476#c2

Simply rename our version to work around this.

Since we don't build this part of the test code for gcc >= 6, this
issue only happens if the buggy libstdc++ thread code is used together
with gcc 5. This is the case with for example devtoolset-4-gcc-5.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15842
2016-04-02 22:07:59 +00:00
Bart Van Assche
85cbffe27b configure.ac: Port to gcc 5
Apparently gcc 5 behaves as follows:
$ gcc -dumpversion
5



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15773
2016-01-25 04:27:25 +00:00
Bart Van Assche
110f1ebd71 drd/tests/std_thread: Remove two superfluous macro definitions
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14003
2014-06-07 13:13:45 +00:00
Bart Van Assche
457786af9b drd/tests/std_thread: Minimize diffs with original
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14002
2014-06-07 07:48:04 +00:00
Bart Van Assche
fc5921fa59 drd/tests/std_thread: Enable this test program
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14001
2014-06-07 07:31:56 +00:00
Bart Van Assche
aac70d3117 DRD: Add test program for std::thread.
To do: document _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE/AFTER in the DRD manual.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12284
2011-12-10 19:42:05 +00:00