aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-06-28 07:51:35 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-06-28 07:51:35 +0000
commit9a265443ff33836bf2c4deb73f7a0b19b0313cf7 (patch)
tree0b3d45ed7f75b5918932637deaa193a1fef0444b
parent306b0c920fc691999ecd078f4b1efe015923feea (diff)
downloadgcc-9a265443ff33836bf2c4deb73f7a0b19b0313cf7.zip
gcc-9a265443ff33836bf2c4deb73f7a0b19b0313cf7.tar.gz
gcc-9a265443ff33836bf2c4deb73f7a0b19b0313cf7.tar.bz2
val-profiler-threads-1.c (main): Fix 2nd argument passed to pthread_join.
2017-06-28 Eric Botcazou <ebotcazou@adacore.com> * gcc.dg/tree-prof/val-profiler-threads-1.c (main): Fix 2nd argument passed to pthread_join. From-SVN: r249723
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/tree-prof/val-profiler-threads-1.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4ed5542..f2f9a3e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-28 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc.dg/tree-prof/val-profiler-threads-1.c (main): Fix 2nd argument
+ passed to pthread_join.
+
2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* gcc.target/s390/nodatarel-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/tree-prof/val-profiler-threads-1.c b/gcc/testsuite/gcc.dg/tree-prof/val-profiler-threads-1.c
index 95d6ee3..830232a 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/val-profiler-threads-1.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/val-profiler-threads-1.c
@@ -35,9 +35,9 @@ int main(int argc, char *argv[])
}
}
- int retval;
+ void *retval;
for(t=0;t<NUM_THREADS;t++)
- pthread_join (threads[t], (void**)&retval);
+ pthread_join (threads[t], &retval);
return buffer[10];
}