val-profiler-threads-1.c (main): Fix 2nd argument passed to pthread_join.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 28 Jun 2017 07:51:35 +0000 (07:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 28 Jun 2017 07:51:35 +0000 (07:51 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/val-profiler-threads-1.c

index 4ed5542d4954287e808d30e7bcb5af83b75c0250..f2f9a3e1b89f0d28f253dc189c63d766ad2a2822 100644 (file)
@@ -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.
index 95d6ee3b4a3184be9ae489561fecd49285cb443b..830232a7ffafb0bcff3210fca19f0d0e10094a39 100644 (file)
@@ -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];
 }